From d491626bf9e563cfaa2d7f765e17c99ba4ec4428 Mon Sep 17 00:00:00 2001 From: cutealien Date: Fri, 25 Sep 2015 09:21:36 +0000 Subject: [PATCH] Fix compiling with USE_IRRKLANG enabled. Thx@ AReichl for reporting. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5144 dfc29bdd-3216-0410-991c-e03cc46cb475 --- examples/Demo/CDemo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Demo/CDemo.cpp b/examples/Demo/CDemo.cpp index 78c6489d..5f3de45c 100644 --- a/examples/Demo/CDemo.cpp +++ b/examples/Demo/CDemo.cpp @@ -770,7 +770,7 @@ void CDemo::startIrrKlang() // play music - irrklang::ISound* snd = irrKlang->play2D(mediaPath + "IrrlichtTheme.ogg", true, false, true); + irrklang::ISound* snd = irrKlang->play2D((mediaPath + "IrrlichtTheme.ogg").c_str(), true, false, true); if ( !snd ) snd = irrKlang->play2D("IrrlichtTheme.ogg", true, false, true); @@ -802,7 +802,7 @@ void CDemo::startSound() const io::path mediaPath = getExampleMediaPath(); - stream = Mix_LoadMUS(mediaPath + "IrrlichtTheme.ogg"); + stream = Mix_LoadMUS((mediaPath + "IrrlichtTheme.ogg").c_str()); if (stream) Mix_PlayMusic(stream, -1);