≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How to properly remove a soundsource
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]xmdeveloper[/b] wrote: 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![/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact