How bad is it? How much memory is lost for each call? We are chasing memory leaks in our mod at the moment and are playing mp3 sounds file at level changes.
On Mon, Jul 6, 2009 at 12:19 AM, Justin Krenz <[email protected]> wrote: > I just discovered the source of a memory leak in my mod, Smashball. > It appears that if you call EmitSound using an MP3 sound file, memory > is allocated and never returned. Specifically, > "enginesound->EmitSound(...)" ( /game/shared/SoundEmitterSystem.cpp > line 460 ) is the function that allocates the memory. Thus, if you > play an MP3 over and over, it will eventually cause HL2 to run out of > memory. When playing a wave file, no memory is allocated via > EmitSound. > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

