[Tremor] Memory Troubles

Ripinder Singh ripinder.singh at gmail.com
Wed Jan 5 21:08:20 PST 2005


Well I checked throughout the code and found the trouble(I suppose). I
had mapped the function "alloca" to malloc for porting as no such
function is supported on our platform. Checking all functions that use
alloca, I noted that there are no free calls once the use is served.
Can any one explain what actually is the purpose of alloca, currently
I have put free calls for all the allocas used. Now I was able to run
the same song with 256KB heap size(still quite large compared to say
wma decoder with 64KB heap ). I think still some frees need to be
adjusted. I 'll try to track them down.

Also I was wondering whether in Ogg-Vorbis the number of channels can
exceed 2(stereo) case. Or is it necessay to support more than 2
channels for compliance.

Thanks,
Rip


More information about the Tremor mailing list