scratchyrice
31-01-2009 20:29:33
Hi all,
Im trying to get OgreAL working with my project. Im very almost there, except from one small thing.
Basicly, For some reason when i create two sounds, using the exact same sound file, The first instance will play, But the second will not. Here is some code:
If i try and play s1, All works very well. It plays. I i try and play s2, I hear nothing what soever. Is this a bug? Or is this some kind of weird optimization featrue?
Cheers
Scrathy
Im trying to get OgreAL working with my project. Im very almost there, except from one small thing.
Basicly, For some reason when i create two sounds, using the exact same sound file, The first instance will play, But the second will not. Here is some code:
OgreAL::Sound * s1;
s1 = myRoot->scene->openAlSoundManager->createSound("Mesound2", "testp.ogg", true);
myRoot->scene->openAlSoundManager->set
s1->setGain(1.0);
s1->play();
OgreAL::Sound * s2;
s2 = myRoot->scene->openAlSoundManager->createSound("Mesound21", "testp.ogg", true);
s2->setGain(1.0);
s2->play();
If i try and play s1, All works very well. It plays. I i try and play s2, I hear nothing what soever. Is this a bug? Or is this some kind of weird optimization featrue?
Cheers
Scrathy