Xenomorph
30-09-2009 17:53:25
Hi everyone,
I've had this problem for a while now and can't really figure out why this happens. The problem is that when I run my program the sound plays just fine and I can stop the program, start it right up again and the sound doesn't work. It's really random though because the sound might work one day 10 times in a row and some other day it doesn't work 10 times in a row. And this all happens without changing anything.
Here's how I use it:
And here is the createScene method
Here is how I destroy the object
Any help would be highly appreciated.
I've had this problem for a while now and can't really figure out why this happens. The problem is that when I run my program the sound plays just fine and I can stop the program, start it right up again and the sound doesn't work. It's really random though because the sound might work one day 10 times in a row and some other day it doesn't work 10 times in a row. And this all happens without changing anything.
Here's how I use it:
mSoundManager = new OgreOggSound::OgreOggSoundManager();
mSoundManager->init();
createScene();
And here is the createScene method
OgreOggSound::OgreOggISound *newSound = mSoundManager->createSound("testSound", "test2.ogg", true, false, false);
mSoundManager->playSound(newSound->getName());
Here is how I destroy the object
if(mSoundManager)
delete mSoundManager;
Any help would be highly appreciated.