Commit d491626b authored by cutealien's avatar cutealien

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
parent 02b49eea
...@@ -770,7 +770,7 @@ void CDemo::startIrrKlang() ...@@ -770,7 +770,7 @@ void CDemo::startIrrKlang()
// play music // 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 ) if ( !snd )
snd = irrKlang->play2D("IrrlichtTheme.ogg", true, false, true); snd = irrKlang->play2D("IrrlichtTheme.ogg", true, false, true);
...@@ -802,7 +802,7 @@ void CDemo::startSound() ...@@ -802,7 +802,7 @@ void CDemo::startSound()
const io::path mediaPath = getExampleMediaPath(); const io::path mediaPath = getExampleMediaPath();
stream = Mix_LoadMUS(mediaPath + "IrrlichtTheme.ogg"); stream = Mix_LoadMUS((mediaPath + "IrrlichtTheme.ogg").c_str());
if (stream) if (stream)
Mix_PlayMusic(stream, -1); Mix_PlayMusic(stream, -1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment