add "is_cd" flag to CUESHEET everywhere

This commit is contained in:
Josh Coalson
2002-12-05 06:37:46 +00:00
parent b96199d2ac
commit 8f0c71b877
21 changed files with 106 additions and 32 deletions

View File

@@ -830,6 +830,12 @@ namespace FLAC {
return object_->data.cue_sheet.lead_in;
}
bool CueSheet::get_is_cd() const
{
FLAC__ASSERT(is_valid());
return object_->data.cue_sheet.is_cd? true : false;
}
unsigned CueSheet::get_num_tracks() const
{
FLAC__ASSERT(is_valid());
@@ -857,6 +863,12 @@ namespace FLAC {
object_->data.cue_sheet.lead_in = value;
}
void CueSheet::set_is_cd(bool value)
{
FLAC__ASSERT(is_valid());
object_->data.cue_sheet.is_cd = value;
}
void CueSheet::set_index(unsigned track_num, unsigned index_num, const ::FLAC__StreamMetadata_CueSheet_Index &index)
{
FLAC__ASSERT(is_valid());