olofson / audiality2

A realtime scripted modular audio engine for video games and musical applications.
http://audiality.org/
zlib License
79 stars 5 forks source link

Memory leak when using the "dummy" audio driver #284

Open olofson opened 7 years ago

olofson commented 7 years ago

Running for example 'a2play -ddummy a2jingle.a2s' will result in a memory leak of around 270 kB (waves and other objects) when the engine state is closed. This does not happen when using a proper audio driver.

I'm suspecting this isn't directly related to the "dummy" driver, but rather an effect of running the engine state in offline mode. (No "audio thread", as that's not yet implemented in the "dummy" driver.)

olofson commented 7 years ago

Easiest way to test this is with the 'apistress' test, which uses the "dummy" driver - and BTW; indeed, the problem goes away when using the "jack" driver.