uberglitch
12-10-2007 00:39:49
Hey everyone, just starting out with a new project and trying to get sounds to play. I've hit a roadblock in that I can't seem to find my own audio files (how embarrassing).
I've tried a few different locations, and none have worked.
Here is the relevant code in my project that deals with sound:
It compiles just fine, but can't find the file. I have copies of "testaudio1.ogg" in /Media/Audio/ and in a .zip file in ./resources/ but neither work. Both of those are set up in Resources.cfg and in the code, so I'm stumped.
Here's the relevant section my Ogre.log
Thanks for any help you can offer!
I've tried a few different locations, and none have worked.
Here is the relevant code in my project that deals with sound:
OgreAL::SoundManager *soundManager;
soundManager = new OgreAL::SoundManager();
OgreAL::Sound *bgSound = soundManager->createSoundStream("bgmusic", "testaudio1.ogg", true);
bgSound->setGain(0.5);
bgSound->setRelativeToListener(true);
It compiles just fine, but can't find the file. I have copies of "testaudio1.ogg" in /Media/Audio/ and in a .zip file in ./resources/ but neither work. Both of those are set up in Resources.cfg and in the code, so I'm stumped.
Here's the relevant section my Ogre.log
16:24:43: *-*-* OgreAL Initialization
16:24:43: MovableObjectFactory for type 'OgreAL_Sound' registered.
16:24:43: MovableObjectFactory for type 'OgreAL_Listener' registered.
16:24:43: *-*-* Creating OpenAL
16:24:43: OpenAL Devices: Generic Software,
16:24:43: Choosing: Generic Software
16:24:43: Supported Formats
16:24:43: -----------------
16:24:43: * AL_FORMAT_MONO16, Monophonic Sound
16:24:43: * AL_FORMAT_STEREO16, Stereo Sound
16:24:43: * AL_FORMAT_QUAD16, 4 Channel Sound
16:24:43: * AL_FORMAT_51CHN16, 5.1 Surround Sound
16:24:43: * AL_FORMAT_61CHN16, 6.1 Surround Sound
16:24:43: * AL_FORMAT_71CHN16, 7.1 Surround Sound
16:24:43: EAX 2.0 Detected
16:24:43: OGRE EXCEPTION(1:): Could not open Ogg file. in OgreAL::OggSound::ctor
Thanks for any help you can offer!