
#include <iostream>
#include <irrKlang.h>
using namespace irrklang;
int main(int argc, const char** argv) { // start the sound engine with default parameters ISoundEngine* engine = createIrrKlangDevice();
if (!engine)
return 0; // error starting up the engine
// play some sound stream, looped engine->play2D("somefile.mp3", true); char i = 0; std::cin >> i; // wait for user to press some key engine->drop(); // delete engine return 0; }
using IrrKlang;
namespace HelloWorld
{
class Example
{
[STAThread]
static void Main(string[] args)
{
// start up the engine
ISoundEngine engine = new ISoundEngine();
// play a sound file
engine.Play2D("somefile.mp3");
// wait until user presses ok to end application
System.Windows.Forms.MessageBox.Show(
"Playing, press ok to end.");
} // end main()
} // end class
} // end namespace













