who are example program sound
help me
i not programe sound in irrlicht engine
i want program sound
try Audiere
http://audiere.sourceforge.net
http://audiere.sourceforge.net
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:
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)));
}
}
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?