i want program 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
bunv3

i want program sound

Post by bunv3 »

who are example program sound
help me
i not programe sound in irrlicht engine :lol: :lol: :lol:
kazimoto
Posts: 7
Joined: Thu Dec 01, 2005 2:46 am

Post by kazimoto »

Oh... my... god....

Sigh...

Irrlicht is a graphics engine. For sound, check out openAL. Preferably by using Google.
jonasrf
Posts: 25
Joined: Fri Jan 13, 2006 6:18 am
Contact:

Post by jonasrf »

Staross

Post by Staross »

Here's my simple fmod code.

http://www.staross.ch.eu.org/fmod.zip

You need to modify "son.h" line 5 :

#include "../include/Irr/irrlicht.h"

to include correctly irrlicht.h

Also link fmodlcc.lib & fmodvc.lib (with devcpp).

And use it like this:

Code: Select all

#include "fmod/son.h"

..

int main(){

SoundSystemInit();

Ssound my_sound1("son/02 - variato 1 - a 1 clav.mp3",vector3df(0,0,0));
my_sound1.play();

sound my_sound2("explosion.wav", vector3df(200,10,-300));
my_sound2.load();
my_sound2.play();

...

while(device->run()){

 // distance (sound decrease with distance)

 my_sound1.exp_vol(camera->getPosition().getDistanceFromSQ(my_sound1.getPosition()));
      	
 //orientation (panning)

 cam_pos = camera->getPosition() - my_sound1.getPosition();
 vector3df cam_targ = camera->getTarget() - camera->getPosition();
 cam_pos.normalize();
 my_sound1.pan(253 - int((cam_targ.crossProduct(cam_pos).Y+1)*(255/2)));

}

}
Frazz1080
Posts: 41
Joined: Fri Nov 18, 2005 3:09 am

Post by Frazz1080 »

I just went to the Audiere site and looked in there Downloads section...which one of those files do you download for a Windows system? They've got: the Win32 Binary Release, SGI Binary Release, UNIX Source Release (.tar.gz), and the Source Code Snapshot. What's a Binary release supposed to be, and what do you do with it when you've finished bringing it in?
Guest

Post by Guest »

choose the win32 binary release.

a binary release is already compiled and you got the libs, the source release you have to compile yourself so no libraries to start with.

i hope i could explain to you :)

see you!
Frazz1080
Posts: 41
Joined: Fri Nov 18, 2005 3:09 am

Post by Frazz1080 »

Thank you, that answers my question. :D
Post Reply