ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrEdit
forum topic indicator IrrKlangSceneNode?
person icon
ravi08
Registered User
Quote
2009-07-04 19:42:32

HI,

i hav created a scene using irredit where i used the irrklang node to play a sound on my scene.

I loaded the scene using the irrlicht engine and this is wat i put in my program, at the top include<irrKlangSceneNode.h>

before the main
irrklang::ISoundEngine* soundEngine = createIrrKlangDevice();

within the main
CIrrKlangSceneNodeFactory* factory = new CIrrKlangSceneNodeFactory(soundEngine, smgr);
smgr->registerSceneNodeFactory(factory);

at the bottom
factory->drop();

This is the error message i get: C:\Documents and Settings\HI\My Documents\irrlicht-1.4\Shooting01\main.o:main.cpp:(.text+0x2f6): undefined reference to `CIrrKlangSceneNodeFactory::CIrrKlangSceneNodeFactory(irrklang::ISoundEngine*, irr::scene::ISceneManager*)'

THANKS

person icon
niko
Moderator
Quote
2009-07-08 10:02:26

Maybe you didn't add the irrklangscenenode .cpp to your project?

person icon
ravi08
Registered User
Quote
2009-07-08 23:01:25

i have added the folder containing the cpp file onto the directory of the complier and have also copied the file into the folder where the code is but still get the error message.

person icon
ravi08
Registered User
Quote
2009-07-08 23:36:23

soz my bad such a dumb ass, i added the cpp file to my code and kinda worked.

The thing is that it cant find the sound type, i hav tried to change the directory in irredit, tried movin the sound file onto irrlicht engine folder but still cant find it, any ideas on this.

Also thanks for the help emoji icon_grin

person icon
niko
Moderator
Quote
2009-07-09 19:32:10

you might need to restart irredit after changing the working folder in the options, maybe this is it?

person icon
ravi08
Registered User
Quote
2009-07-10 18:49:26

yea restarted it, saved the scene, reloaded it in irrlicht and still nothing.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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