Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, Quick question: I am receiving PCM data in chunks, which I am playing with: g_SoundSource = engine->addSoundSourceFromPCMData( .. ); g_ISound = engine->play2D( g_SoundSource, false, true, true ); When I detect g_ISound->isFinished(), I do: g_ISound->drop(); engine->removeSoundSource( g_SoundSource ); and then re-create the sound source as above with new data. My question: Do I need to call g_SoundSource->drop(); after the ->removeSoundSource call? Or does removeSoundSource() take care of that? Since I'm deleting and then re-creating sound sources, I don't want to end up with a memory leak :) Many thanks for any help! |
||||
|
Yes, you don't need to drop. It's fine that way. It also is written somewhere in the docs. :) |
|