Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Crashing

hemullll
Registered User
Quote
2012-12-08 21:49:05

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)


niko
Moderator
Quote
2012-12-10 22:06:50

Still looks like that MingW problem (gcc being binary incompatible). I'll see if we can create a newer version soon.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (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