Displaying 1 result from an estimated 1 matches for "decoder_create".
Did you mean:
_encoder_create
2009 Jul 22
2
Allocating all memory up front
...t sounds will be played.
We would like to create all of our CELTDecode instances up front.
Because celt_mode_create() requires a sample rate and number of channels
passed in, this doesn't seem like it is currently possible.
What I am thinking of doing is calling celt_mode_create() and
celt_decoder_create() up front with the maximum values for sample rate
and number of channels, this will allocate all the memory we need. Then
when we actually go to play a sound and know the rate and number of
channels, we can fix up the appropriate mode parameters before decoding.
The only problem I can see is t...