kungfoomasta
05-02-2010 07:07:48
Hi sticky,
I converted a mp3 file to a wav file, and there is an error when trying to play it. However when I convert mp3 to ogg, the ogg plays fine.
wav file
Here is my code:
Can you try playing the wav and see if you get any problems?
Also, I noticed that using the code above I get ambient noises, which is what I want. Now I'm starting to need some 3d sounds, but I can't figure out how to create 3d sounds. Do the sounds need to be attached to a scene node to be in the scene? I'm trying to implement things like footsteps or noises made by units attacking other units. It would be sweet to have a 'temporary 3d sound'. As is I'm guessing I'd need to create the sound, mark temporary, create a scene node, and attach it to a scene node. Any suggestions?
I converted a mp3 file to a wav file, and there is an error when trying to play it. However when I convert mp3 to ogg, the ogg plays fine.
wav file
Here is my code:
OgreOggSound::OgreOggISound* sound = mOgreOggSoundManager->createSound(name,fileName);
if(sound != NULL)
{
sound->play();
sound->markTemporary();
return name;
}
Can you try playing the wav and see if you get any problems?
Also, I noticed that using the code above I get ambient noises, which is what I want. Now I'm starting to need some 3d sounds, but I can't figure out how to create 3d sounds. Do the sounds need to be attached to a scene node to be in the scene? I'm trying to implement things like footsteps or noises made by units attacking other units. It would be sweet to have a 'temporary 3d sound'. As is I'm guessing I'd need to create the sound, mark temporary, create a scene node, and attach it to a scene node. Any suggestions?