include <iostream> include <irrKlang.h> using namespace irrklang;
//pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll int main(int argc, const char** argv) { // start the sound engine with default parameters ISoundEngine* engine = createIrrKlangDevice(ESOD_DIRECT_SOUND);
if (!engine) return 0; // error starting up the engine // play some sound stream, looped
engine->play2D("media/getout.ogg", true); std::cout << "\nHello World!\n";
char i = 0;
while(i != 'q') { std::cout << "Press any key to play some sound, press 'q' to quit.\n";
// play a single sound engine->play2D("bell.wav");
std::cin >> i; // wait for user to press some key } engine->drop(); // delete engine return 0; }
engine->play2D("media/getout.ogg", true); engine->play2D("bell.wav"); - there app crashing
I read
http://www.ambiera.com/forum.php...
and try to install last year version MinGW (it didn't help)
|