Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
help me !!!

join_boss
Registered User
Quote
2012-08-09 15:39:42

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?


erik
Registered User
Quote
2012-08-09 16:15:02

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.


join_boss
Registered User
Quote
2012-08-09 16:33:47

No.I not use absolute link that I put file.wav on project


join_boss
Registered User
Quote
2012-08-09 19:01:28

help


niko
Moderator
Quote
2012-08-10 07:22:24

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.


join_boss
Registered User
Quote
2012-08-10 16:48:40

Oh . thanks you very much!!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact