Oceax
28-06-2010 00:04:52
I compiled a multi-threaded version of this lib and used it in my program with the following code
The sound plays fine, but when i exit the program or it crashes, the sound card starts to make weird noises forever, and once even gave me blue screen of death.
My program does not shutdown properly but that shouldn't cause this problem? If the program crashes for any reason, then i don't want it to also be able to crash the whole operating system.
My sound card is Creative SB X-Fi.
I will try non-threaded now, but what can be the reason for this problem?
OgreOggSound::OgreOggSoundManager *mSoundMgr;
mSoundMgr = OgreOggSound::OgreOggSoundManager::getSingletonPtr();
mSoundMgr->init();
OgreOggSound::OgreOggISound* pBackgroundMusic =
mSoundMgr->createSound("AUDIO", "Asun3.wav", false, true);
pBackgroundMusic->setVolume(0.1);
pBackgroundMusic->play();
The sound plays fine, but when i exit the program or it crashes, the sound card starts to make weird noises forever, and once even gave me blue screen of death.
My program does not shutdown properly but that shouldn't cause this problem? If the program crashes for any reason, then i don't want it to also be able to crash the whole operating system.
My sound card is Creative SB X-Fi.
I will try non-threaded now, but what can be the reason for this problem?