Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Trying to use irrKlang in irrlicht app, but there's no sound

sebinho
Guest
Quote
2014-06-12 16:49:10

I've included irrKlang etc. Folder path is correct. Here's code:
    ifdef USE_IRRKLANG
ISoundEngine* irrKlang = createIrrKlangDevice();
irrKlang = irrklang::createIrrKlangDevice();
irrklang::ISound* snd = irrKlang->play2D("../textures/IrrlichtTheme.ogg", true, false, true);
if ( !snd )
snd = irrKlang->play2D("IrrlichtTheme.ogg", true, false, true);

if (snd)
{
snd->setVolume(1.0f); // 100% volume
snd->drop();
}
endif


It's only silence. What did I wrong? Thanks for help ;)


erik
Registered User
Quote
2014-06-12 18:44:56

So, what does 'snd' contain after you called play2D, is it null?


sebinho
Guest
Quote
2014-06-12 19:13:26

Also when I don't use ifdef I get every time "Entry point not found createIrrKlangDevice@irrklang@@YAPAVISoundEngine@1@W4E_SOUND_OUTPUT_DRIVER@1@HPBD1@Z in irrKlang.dll"


sebinho
Registered User
Quote
2014-06-12 19:17:28

Ok, i got this. I was using wrong library. Problem solved.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact