Cid
16-08-2010 17:44:05
What is the correct way of construction and destroing of OgreOggSoundManager object?
I use
sound_mgr = OgreOggSound::OgreOggSoundManager::getSingletonPtr();
sound_mgr->init();
for construction (after creating Ogre::Root) and
sound_mgr->stopAllSounds();
for destroing (before Ogre::Root deleting)
This produces no errors but as I understood from other topics of this forum, I must manually destroy OgreOggSoundManager object:
delete sound_mgr;
When I try to call 'delete sound_mgr;' or 'sound_mgr->destroyAllSounds();' before 'sound_mgr->stopAllSounds();' the error "access violation" is occured in
OgreOggSoundManager::_processQueuedSounds.
I'm using OgreOggSound v1.17 (multithreaded build with boost 1.42), Ogre v 1.71 and VS2005 SP1
I use
sound_mgr = OgreOggSound::OgreOggSoundManager::getSingletonPtr();
sound_mgr->init();
for construction (after creating Ogre::Root) and
sound_mgr->stopAllSounds();
for destroing (before Ogre::Root deleting)
This produces no errors but as I understood from other topics of this forum, I must manually destroy OgreOggSoundManager object:
delete sound_mgr;
When I try to call 'delete sound_mgr;' or 'sound_mgr->destroyAllSounds();' before 'sound_mgr->stopAllSounds();' the error "access violation" is occured in
OgreOggSoundManager::_processQueuedSounds.
I'm using OgreOggSound v1.17 (multithreaded build with boost 1.42), Ogre v 1.71 and VS2005 SP1