[Flac-dev] mistake in FLAC++ metadata interface?

Josh Coalson xflac at yahoo.com
Wed Jan 22 12:17:22 PST 2003


yep, that's a bug.  fixed in CVS.

--- David Collett <jg at 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




More information about the Flac-dev mailing list