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-e03cc46cb475master
parent
02b49eea1b
commit
d491626bf9
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue