music not playing(SOLVED!!!!!!)thanks tropper,vitek,Acki,Mon

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

ok i added the dll,no problems their but the compiler wont find the audiere.h and i tried putting it in EVERY folder and still wont find it.

Image
trooper
Posts: 85
Joined: Fri Nov 03, 2006 7:34 pm
Location: Maryland, USA
Contact:

Post by trooper »

OK,

I see your using Visual C++, and I guess you know where the Audiere Folder (SDK) is installed.

So go to Visual Studio - TOOLS - OPTIONS, then PROJECTS & SOLUTIONS on the left, then VC++ DIRECTORIES, then on the right using the drop down, setup up the paths for the INCLUDE & LIBRARY paths.

example
INCLUDE:
D:\SDK\audiere\include

LIBRARY:
D:\SDK\audiere\lib

that should be it :wink:
You scratch my back, I'll scratch yours.
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

hey the compiler found it but MORREE anoying errors came up!.
OMG i didn know audio was sooo dam hard!

Code: Select all

Compiling manifest to resources...
Linking...
IrrCameraRPG.obj : error LNK2019: unresolved external symbol __imp__AdrOpenDevice@8 referenced in function "class audiere::AudioDevice * __cdecl audiere::OpenDevice(char const *,char const *)" (?OpenDevice@audiere@@YAPAVAudioDevice@1@PBD0@Z)
IrrCameraRPG.obj : error LNK2019: unresolved external symbol __imp__AdrOpenSampleSource@8 referenced in function "class audiere::SampleSource * __cdecl audiere::OpenSampleSource(char const *,enum audiere::FileFormat)" (?OpenSampleSource@audiere@@YAPAVSampleSource@1@PBDW4FileFormat@1@@Z)
IrrCameraRPG.obj : error LNK2019: unresolved external symbol __imp__AdrOpenSound@12 referenced in function "class audiere::OutputStream * __cdecl audiere::OpenSound(class audiere::RefPtr<class audiere::AudioDevice> const &,class audiere::RefPtr<class audiere::SampleSource> const &,bool)" (?OpenSound@audiere@@YAPAVOutputStream@1@ABV?$RefPtr@VAudioDevice@audiere@@@1@ABV?$RefPtr@VSampleSource@audiere@@@1@_N@Z)
C:\Documents and Settings\Haouchars\Desktop\3d\IrrCameraRPG\Debug\IrrCameraRPG.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Haouchars\Desktop\3d\IrrCameraRPG\IrrCameraRPG\Debug\BuildLog.htm"
IrrCameraRPG - 4 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========[quote][/quote]
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

did you link your project against the Audiere lib !?!?!
for MSVC you'll have to use the pragma in your code:

Code: Select all

#pragma comment(lib, "audiere.lib")
maybe you'll have to use another lib name like audiere.a or libaudiere.a or something like this (look into the sdk for the right name)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

OMG GREAT IT WORKED, I JUST NEED TO ADD

#pragma comment(lib, "audiere.lib")

soo cooooool, first tiem i can get the to edit my title and say solved!yay
trooper
Posts: 85
Joined: Fri Nov 03, 2006 7:34 pm
Location: Maryland, USA
Contact:

Post by trooper »

Your welcome, everyone loves praise :wink:

Keep up the good work.

And @ Acki - Nice work too, I always get good advice from you, even just reading your answers to others - Thanks :D
You scratch my back, I'll scratch yours.
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

trooper wrote:And @ Acki - Nice work too, I always get good advice from you, even just reading your answers to others - Thanks :D
I do too, and sorry for this bit of spam. But Acki rocks ;)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

WOHOO, that tastes like honey, I'm really honored !!! :wink:
I hope I don't get to fly too high !!! :lol:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply