LordDarken
02-10-2016 13:51:20
Hi,
I've got a crash with a file I found here : http://opengameart.org/content/action-s ... ndset-wwvi . The file is zzzt.ogg. I'm using it as a repetitive sound, here the code:
I converted the file into a wav file and no more crashes. I'm doing something wrong? Or I just need to avoid ogg files?
Thanks
Edit: After removing the streamed paramerter, it seems fixed.
I've got a crash with a file I found here : http://opengameart.org/content/action-s ... ndset-wwvi . The file is zzzt.ogg. I'm using it as a repetitive sound, here the code:
OgreOggSound::OgreOggISound* sd = OgreOggSound::OgreOggSoundManager::getSingletonPtr()->createSound(room->node->getName() + "FireSound", param->mSoundFile, loopSound, loopSound);//use streamed sounds for long and repetitive sounds
if (sd)
{
room->sound = sd;
// Attach to a SceneNode
room->node->attachObject(sd);
sd->setRolloffFactor(2.f);
sd->setMaxDistance(1000.f);
sd->setMinVolume(0.01f);
sd->setMaxVolume(0.5f);
sd->setVolume(OgreFramework::getSingletonPtr()->m_pOptionsProfile->mOthersSoundLevel * param->mSoundVolume);
sd->play();
}
I converted the file into a wav file and no more crashes. I'm doing something wrong? Or I just need to avoid ogg files?
Thanks
Edit: After removing the streamed paramerter, it seems fixed.