Problems with loading irr file and fps camera.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
AReichl
Posts: 270
Joined: Wed Jul 13, 2011 2:34 pm

Re: Problems with loading irr file and fps camera.

Post by AReichl »

about your problem with Irrklang:
this is "strange":

irrklang::ISound* snd = ...
-> if ( !snd )
snd = irrKlang->play2D("IrrlichtTheme.ogg", true, false, true);

and i don't know if you should drop 'snd' right away; just keep it, you may need it later.
sebinho
Posts: 10
Joined: Sat Dec 06, 2008 8:28 pm

Re: Problems with loading irr file and fps camera.

Post by sebinho »

I've reduced irrKlang code. Now it looks like this:

Code: Select all

ISoundEngine* engine = createIrrKlangDevice();
    if (!engine)
    {
        return 0; // 
    }
    engine->play2D("../textures/IrrlichtTheme.ogg", true);
    engine->setSoundVolume(0.5f);
Also I was using wrong dll file, and now it works perfectly.
Post Reply