[Flac-dev] usage of C++ StreamMetadata interface

Josh Coalson xflac at yahoo.com
Wed Jul 21 17:52:20 PDT 2004


--- Josh Coalson <xflac at yahoo.com> wrote:
> --- Thomas Eschenbacher <Thomas.Eschenbacher at gmx.de> wrote:
> > Josh Coalson wrote:
> > > [...]
> > > why do you need one?  all the fields are available though method
> > > calls.
> > 
> > just an example:
> > 
> > I created an object of the type "FLAC::Metadata::VorbisComment".
> > 
> > How will this find it's way to
> > "FLAC::Stream::Encoder.set_metadata()" ???
> 
> I see, yep that's a problem.  there should be versions of
> FLAC::Encoder::*::set_metadata() that take a list of
> FLAC::Metadata objects also.

OK, I added a
set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks)
to all the encoder interfaces which takes an array of pointers
to metadata objects; as with the other method, the caller has to
free the objects after initializing the encoder.

Josh


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Flac-dev mailing list