Hi all, Using the FLAC++ level 2 metadata interface the following function doesn't do what you would expect: cuesheet->get_track(i).get_num_indices(); (where cuesheet is a FLAC::Metadata::CueSheet *) It returns a bool instead of an int, why is this? To get the mumber of indicies in a track I need to use: cuesheet->get_track(i).get_track()->num_indices; ie. retrieve the C struct and get it from there. Is this a mistake in include/FLAC++/metadata.h ? ie should line 609 be: inline FLAC__byte get_num_indices() const { return object_->num_indices; } rather than: inline bool get_num_indices() const { return object_->num_indices; } ? thanks, Dave -- David Collett <jg@webone.com.au>
yep, that's a bug. fixed in CVS. --- David Collett <jg@webone.com.au> wrote:> Hi all, > Using the FLAC++ level 2 metadata interface the following function > doesn't do what you would expect: > > cuesheet->get_track(i).get_num_indices(); > (where cuesheet is a FLAC::Metadata::CueSheet *) > > It returns a bool instead of an int, why is this? > > To get the mumber of indicies in a track I need to use: > cuesheet->get_track(i).get_track()->num_indices; > > ie. retrieve the C struct and get it from there. > > Is this a mistake in include/FLAC++/metadata.h ? > ie should line 609 be: > inline FLAC__byte get_num_indices() const { return > object_->num_indices; > } > rather than: > inline bool get_num_indices() const { return object_->num_indices; } > > ?__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com