how i can add voice to my game

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
blendermen

how i can add voice to my game

Post by blendermen »

HI. I am Marcin. I trying create games in irrlicht. I have city from 3 houses(
wow.Big:))now. I don know how i can add voice to my game.
for excample: If I am near tree - play music "bird.mp3"
or somethink like this.

Marcin.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You need to use an audio api, check out the sound thread further down this forum
Image Image Image
vickylh
Posts: 9
Joined: Thu Mar 09, 2006 4:43 pm

use the FMOD

Post by vickylh »

maybe the FMOD APIs can help you
hybrid

Post by hybrid »

I don't know FMOD, but OpenAL is very good. There is an Irrlicht SceneNode implementing OpenAL support. I think it is in FNORD game somewhere in the projects forum. You'll have to adapt to latest OpenAL library, though. Or check for the latest P-UMLaut 3d world which will be available in the next days (http://www.p-umlaut.de). You just have to attach the listener to the camera and the sound sources to all scene nodes with sound. OpenAL will automatically make the sounds such that you only hear the sounds near you and will even care for left and right surround effects.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Huh. I'm just finishing writing the same thing with Fmod. 3d sound emitters and listeners are working fine. I'm just trying to decide if I want to add Fmod stream sounds and music support or not.
Post Reply