Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
When I call method drop still music keep playing. ISoundEngine *engine = createIrrKlangDevice(); ISound *sound = engine->play2D("PIL.mp3",false,false,true); sound->setPlayPosition(15000); sound->drop() ; int c; cin >> c; engine->drop(); |
||||
|
Drop won't stop playing the music. Stop() will. |
||||
|
So what method drop does? |
||||
|
It is just a standard reference counting mechanism. Drop() says you don't need the object anymore. But that doesn't mean that it gets deleted. Likely the engine needs it still. Only if the last owner calls drop(), then the object gets deleted. Also see the documentation for this. |
|