Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, In my current project I'm using Irrklang inside a sound managing class. When I play a sound, everything seems to work fine. But when I looked up the Task Manager, i've seen that everytime the sound is played the memory usage increses. So i'm not sure if I use Irrklang the right way. Here's the code I'm using: Sound-Manager class: Could somebody tell me what's wrong? |
||||
|
After Music->stop(), add a music->drop() in order to free its memory. |
||||
|
Thanks, that was it. And is it possible that the ISound object cleares up itself, after the sound stops playing? |
||||
|
Sure, you just call drop() immideately, after you don't need the pointer anymore. The music will continue playing, and the memory gets freed automatically then after it finished. |
|