Sound

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.
Post Reply
Vintige
Posts: 11
Joined: Tue Nov 13, 2007 10:57 am

Sound

Post by Vintige »

Hello im a newbie and ive created a level on irredit for my college game and wondering how to incorperate sound into the level. for example when the craft an object with a sound.
Thankyou for your help
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You need to use an audio API to get sound in. There's one from the Irrlicht developers called IrrKlang which may be a nice one to use. Personally i've used Audiere and got on very well with it. There's also OpenAL aswell and probably many others i've forgotten!
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

[Ignore me, I don't use IrrEdit ;) ]
Last edited by rogerborg on Tue Nov 13, 2007 5:35 pm, edited 1 time in total.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Vintige
Posts: 11
Joined: Tue Nov 13, 2007 10:57 am

Post by Vintige »

Thankyou for your help. ive loaded an irrklang sound into irredit and put the irrklang header into irrilicht. the sound isnt loading yet though, is there anything else i have to do.
Thankyou
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You need to register the klang scene node factory with your scene manager so the scene manager knows how to create the new scene node types.

Travis
Vintige
Posts: 11
Joined: Tue Nov 13, 2007 10:57 am

Post by Vintige »

Thankyou

Last problem (i promise lol), i have an heart on my irredit map with a heartbeat sound but when i type the position on irrilicht that i got of the irredit map, it says the file exited and doesnt play the sound. I can only play the sound like a background sound but i want the effect is when it goes closer to the heart it gets louder. Sorry if its basic but iam a newbie lol

Thankyou for your help
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yeah, I don't really know. I haven't used IrrEdit or IrrKlang.
ultran00b
Posts: 35
Joined: Tue Oct 30, 2007 3:30 pm

Post by ultran00b »

Use irrKlang's 3d sound feature. I haven't experimented much with it, but it will do what you want.
Use the debugger, young Skywalker...
Post Reply