[fixed]using IrrKlang with Tech Demo in trunk

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
AReichl
Posts: 270
Joined: Wed Jul 13, 2011 2:34 pm

[fixed]using IrrKlang with Tech Demo in trunk

Post by AReichl »

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);
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: using IrrKlang with Tech Demo after last changes in trun

Post by CuteAlien »

Thanks for report, should work now again I hope (admittedly I haven't IrrKlang installed myself...).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: [fixed]using IrrKlang with Tech Demo in trunk

Post by Nadro »

Thanks for that, it was my fault :)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply