linux111
13-04-2015 11:16:38
Hello,guys
I use the OgreOggSound to play sound in the game, but it doesn't work, here is my code:
What should I do?
I use the OgreOggSound to play sound in the game, but it doesn't work, here is my code:
OgreOggSound::OgreOggSoundManager::getSingletonPtr()->createSound("sound","dvorak_symphony_9_4.ogg",false,true,true);
OgreOggSound::OgreOggSoundManager::getSingletonPtr()->getSound("sound")->setVolume(1);
OgreOggSound::OgreOggSoundManager::getSingletonPtr()->getSound("sound")->setMinVolume(1);
OgreOggSound::OgreOggSoundManager::getSingletonPtr()->getSound("sound")->setMaxVolume(1);
OgreOggSound::OgreOggSoundManager::getSingletonPtr()->getSound("sound")->play(true);
What should I do?