Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi guys! I've got a problem that i just can't seem to solve. I'm programming a game on the OGRE3D engine, and i'm using irrklang for everything sound related. I've added the .lib file to my project directory and the .dll in the right folder. Now, i'm trying to create a sound on the main screen of the game as such: file.h include "irrklang.h" include "conio.h" pragma comment(lib, "irrKlang.lib") class something { protected: irrklang::ISoundEngine* engine; } file.cpp engine = irrklang::createIrrKlangDevice(); engine->play2D("getout.ogg", true); everything compiles fine but i can't hear any sound and the debug table says: irrKlang sound library version 1.4.0 Loaded plugin: ikpflac.dll Loaded plugin: ikpmp3.dll Using DirectSound8 driver Could not open sound file: getout.ogg Any idea why the file isn't opened? :s plz help me EDIT: i tried using play2D("getout.ogg", false, false, true); but didn't change anything :P |
||||
|
If you enter the full path to the file, does it work then? Probably the file cannot be loaded from your current working directory. |
||||
|
yup tried that :S still no work. can the path in the linker be causing this? (i just placed the .lib file in the project directory) im at a lost and have totally no clue why this is happening. i'm all out of ideas :S |
||||
|
no idea anyone ? :S |
||||
|
The linker doesn't have to do anything with that. Are you sure you entered the full path correctly? Note that if it includes special charaters like \, then you need to escape them, like this: \\ |
||||
|
AAAAAAAAAAA omg that fixed it!!! THX NIKO you are the BEST! the double "\" fixed it! So happy right now :D THX! |
|