Zach Griffin
25-09-2009 08:34:24
Hi,
We've just updated to the latest svn version and can no longer play any sounds. The project runs fine with no crashes or compile errors yet nothing can be heard.
The initialisation is:
To play the sound we call:
and to create the sound we call:
What is the minimum setup to play a 2D stereo sound?
We've just updated to the latest svn version and can no longer play any sounds. The project runs fine with no crashes or compile errors yet nothing can be heard.
The initialisation is:
soundManager = OgreOggSound::OgreOggSoundManager::getSingletonPtr();
soundManager->init();
To play the sound we call:
soundManager->getSound(name)->play();
and to create the sound we call:
AudioLink::AudioLink( const std::string& _name,const std::string& file, bool stream /*= false*/, bool loop /*= false*/, bool preBuffer/*=false*/ )
{
soundManager = OgreOggSound::OgreOggSoundManager::getSingletonPtr();
sound = 0;
name = _name;
if ( sound = soundManager->createSound(name, file, stream, loop) )
{
soundManager->getSound(name)->disable3D(true);
// soundManager->getSound(name)->setMaxDistance(50);
// soundManager->getSound(name)->setReferenceDistance(1);
// soundManager->getSound(name)->setRelativeToListener(true); // TODO Remove for 3d sound
}
}
What is the minimum setup to play a 2D stereo sound?