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.
|