[fixed]using IrrKlang with Tech Demo in trunk
Posted: Fri Sep 25, 2015 8:36 am
Hi,
after the last changes in trunk the Irrlicht Tech Demo won't compile any longer IF Irrklang is used
( #define USE_IRRKLANG in CDemo.h ).
IrrKlang-functions have a "const char *" as first parameter (e.g. play2D).
so
irrKlang->play2D( mediaPath + "IrrlichtTheme.ogg", true, false, true);
should be
irrKlang->play2D( (mediaPath + "IrrlichtTheme.ogg").c_str(), true, false, true);
after the last changes in trunk the Irrlicht Tech Demo won't compile any longer IF Irrklang is used
( #define USE_IRRKLANG in CDemo.h ).
IrrKlang-functions have a "const char *" as first parameter (e.g. play2D).
so
irrKlang->play2D( mediaPath + "IrrlichtTheme.ogg", true, false, true);
should be
irrKlang->play2D( (mediaPath + "IrrlichtTheme.ogg").c_str(), true, false, true);