kinggori
09-02-2007 05:29:23
hello once again guys
So far I've managed to install OgreAL, set global variables and run the demos
Now I'm trying to add sound to a game I already have but my code can't seem to locate OgreAL
Here is my structure:
mydev
|--freealut-1.1.0-bin
|--OgreAL
|--vorbis
|--ogrenew
|--ogg
|--mygame
|---scripts
|----mygame.sln
I opened mygame.sln and...
in OgreApp::OgreApp() i added:
and in ogreapp.cpp and added in the OgreApp::createScene()
when i try building i get many errors relating to sound some of which are:
Error 1 error C2065: 'soundManager' : undeclared identifier
Error 2 error C2653: 'OgreAL' : is not a class or namespace name
Error 3 error C2061: syntax error : identifier 'SoundManager'
Error 5 error C2065: 'Sound' : undeclared identifier
.....
so apparently my game can't see the OgreAL libraries
any suggestions on how i could fix this?
So far I've managed to install OgreAL, set global variables and run the demos
Now I'm trying to add sound to a game I already have but my code can't seem to locate OgreAL
Here is my structure:
mydev
|--freealut-1.1.0-bin
|--OgreAL
|--vorbis
|--ogrenew
|--ogg
|--mygame
|---scripts
|----mygame.sln
I opened mygame.sln and...
in OgreApp::OgreApp() i added:
soundManager = new OgreAL::SoundManager(sceneMgr);
and in ogreapp.cpp and added in the OgreApp::createScene()
OgreAL::Sound *sound = soundManager->createSound("Roar", "roar.wav", true);
node->attachObject(sound);
sound->play();
when i try building i get many errors relating to sound some of which are:
Error 1 error C2065: 'soundManager' : undeclared identifier
Error 2 error C2653: 'OgreAL' : is not a class or namespace name
Error 3 error C2061: syntax error : identifier 'SoundManager'
Error 5 error C2065: 'Sound' : undeclared identifier
.....
so apparently my game can't see the OgreAL libraries

any suggestions on how i could fix this?