Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I have code section following : include <iostream> include <irrKlang.h> using namespace irrklang; using namespace std; pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll int main(int argc, const char** argv) { irrklang::ISoundEngine* engine = irrklang::createIrrKlangDevice(); if (!engine) return 0; // could not start engine engine->play2D("1.wav"); // play some mp3 file, looped std::cin.get(); // wait until user presses a key engine->drop(); // delete engine return 0; } file 1.wav me already set on project . While compile not failed but when running on screen console output current error :could not open source file:1.wav : why? |
||||
|
Maybe because the file is not in your working directory? Either write C:\full\path\to\your\file.wav or check if your working directory is that where your .wav file is. |
||||
|
No.I not use absolute link that I put file.wav on project |
||||
|
help |
||||
|
Well, I'm not a telepath, you need to add some more info. Or maybe try around a bit with it. Maybe the .wav file isn't supported, try another file. Be sure you correctly entered the correct path. |
||||
|
Oh . thanks you very much!! |
|