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

Reply via email to