haibo19981984
24-03-2010 02:00:13
I use OgreOggSound1.16 from svn and use OpenAL 1.1 SDK.
My code runs OK in OgreOggSound1.14,but doesn't run in OgreOggSound1.16.
I think there must be some alteration in OgreOggSound1.16 about sound manager 's build?
this is my code:
my error occurs in "mSoundMgr->init();".
I examine "mSoundMgr" and find that the value of "mDevice""mContext""mOrigVolume" are NULL.
So I think there must be some thing I have not to add about OpenAL.
My code runs OK in OgreOggSound1.14,but doesn't run in OgreOggSound1.16.
I think there must be some alteration in OgreOggSound1.16 about sound manager 's build?
this is my code:
mSoundMgr = OgreOggSound::OgreOggSoundManager::getSingletonPtr();
mSoundMgr->init();
OgreOggSound::OgreOggISound* pBackgroundMusic =
mSoundMgr->createSound("BackgroundMusic", "KingdomOfLight.ogg", false, true);
pBackgroundMusic->setVolume(0.1);
pBackgroundMusic->play();
my error occurs in "mSoundMgr->init();".
I examine "mSoundMgr" and find that the value of "mDevice""mContext""mOrigVolume" are NULL.
So I think there must be some thing I have not to add about OpenAL.