sounds

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.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

hey Lord!!!

But how do you get it to work together with loading a level? If I put it with my other code it gives priority to the audio application and not the level. That's why I thought it had to be added as a separate cpp file.

any ideas?
Image
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Lord, forget my last post. I tried your code and it works perfect!!!

thnx, thnx, thnx. Now I gotta create some music for my level and upload it for download!!!


cheers and thnx!
Image
Peter Müller
Posts: 292
Joined: Sun Mar 14, 2004 5:28 pm
Location: Germany
Contact:

Post by Peter Müller »

@afecelis:
What exactly the problem, you had? You just wrote 'the code went nuts' or something.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

every time again!

but now it is the question , how do make 3d effect sound.. how to get the stereo or 3d effect of a rocket rushing over your head or pistol shots in the far
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

my testlevel is ready for download, it plays an mp3, with all your help:
http://www.theshower.nl/cgi-bin/genesis ... is/AFC.zip
Image
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

very very nice!!!! well textured and atmosphericall lightned map!!
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Thnx! I'm glad you like it!!!

I hope others download it and comment it too
Image
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

how to connect sounds to a scene node (or other way) to have 3d sound effects? sounds seems to be a problem for me and many other , didn't it?
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

yep! I was thinking that the same way you attach a billboard to a light node, there should be a node to which you can attach an mp3. That way you can place the node somewhere in your map and get environmental effects and positional 3d audio.

If anyone has run into this node in the code, or knows how to do it please let us know!
Image
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Audiere doesn't support 3D sound, however I think a sound engine that does would be easy to intergrate. You would just use the sound position of the node and the listener position of the camera. I don't know of any sound engines that use 3D sound however or how easy they are to use but you would probably find one if you looked hard enough. Would be interesting, definatly.
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

yes, maby i find a sound engine in which i have a funtion for "position sound " which i give the position of a node ! did any one have experience with fmod or openal who can help me/us.
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I was just playing around with fmod. It compiles ok but I gotta read some stuff on game application since they say in their site it's been used in Xbox,Gamecube,PS2 and WindowsCE games. The problem is that it's not opensource...and it's not cheap, either.

OpenAL is widely used in games. It would be cool to get some info on it and start working on implementing 3d audio for our apps!!!

:D
Image
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

anybody got US$2000 for an Fmod win32 license?


anyone?

sure?
Image
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

i think openAL is the one for me
to attach a sound to a scene node

Code: Select all

//set source position
alSource3f(alSource,AL_POSITION, xposition, yposition, zposition);

//set source velocity
alSource3f(alSource,AL_VELOCITY, xvelocity, yvelocity, zvelocity);
to attach a "listener" to the camera scene node

Code: Select all

//set current listener position
alListener3f(AL_POSITION, listenerx, listenery, listenerz);

//set current listener orientation
alListenerfv(AL_ORIENTATION, vec);
how to convert the irrlicht "look at" vector to the openAL "look at" vector (orientation)

once a time i have read that something is strange with the x,y,z coordinates in irrlicht?

a openAL tut http://www.devmaster.net/articles/openal/
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
Post Reply