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
master
cutealien 2015-09-25 09:21:36 +00:00
parent 02b49eea1b
commit d491626bf9
1 changed files with 2 additions and 2 deletions

View File

@ -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);