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 <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Flac-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flac-dev

Reply via email to