[SOLVED] Sound works sometimes but not always

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:
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.

stickymango

30-09-2009 21:06:29

Upgrade to the latest version from SVN, as there have been numerous bug fixes made, playSound() no longer exists...

Let me know if the problem is still there.

Xenomorph

01-10-2009 18:42:15

Ok, I got the latest version and so far so good. I'll let you know if I encounter any problems.