[Flac-users] libflac memory requirements?

Josh Coalson xflac at yahoo.com
Fri Aug 16 10:32:03 PDT 2002


--- Dave Flowerday <davidf at pier13.com> wrote:
> Hello,
> Can someone give me an idea of the memory requirements for using
> libFLAC?  
> I'm trying to incorporate FLAC support into a player application for
> the
> Rio Receiver (see http://rioreceiver.comms.net for details), but I'm
> having trouble because FLAC__stream_decoder_new() is attempting to
> allocate 2099828 bytes for an instance of the
> FLAC__StreamDecoderPrivate
> struct.  Is this accurate, or is there something wrong with my setup?

I forgot to mention, as a temporary workaround until the next
release, in your development environment you can safely reduce
the requirement by changing the word 
'FLAC__MAX_RICE_PARTITION_ORDER' to '6' in the definition of the
struct FLAC__EntropyCodingMethod_PartitionedRice, in format.h,
if you remember this limitation: it will only support files with
a max partition order of 6.  This number corresponds to the value 
passed to '-r' in flac.  You will notice that 6 is the maximum 
used for -r in any of the -0 .. -8 options in flac.  Just make
sure you don't release this change anywhere.

Josh


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com




More information about the Flac mailing list