New to Fmod, strait implementation Vs this incomprehensible Dx8 sound. (almost for non english reader)Long live Fmod.
My question is: I try to implement lightning
sound in my 3d world with 3d sound.
Everything work fine except that I can’t hear any delay beetween the lightning light and the sound even at far distance.
I assume that while sound is 330 meter/second at 2000 meter I should have 6 second delay
Here is what I do:
FSOUND_Init(44100, 32, FSOUND_INIT_USEDEFAULTMIDISYNTH);
FSOUND_3D_Listener_SetDistanceFactor(3.28f); // Feet
NearThunder[m_dwThundWavNumber] = FSOUND_Sample_Load(FSOUND_FREE, Filename, FSOUND_HW3D | FSOUND_NORMAL, 0);
FSOUND_Sample_SetMinMaxDistance(NearThunder[m_dwThundWavNumber],50.0f,5000.0f); // loud sound
// Game Loop
// ask for thunder sound when lightning
// pos contain x,y,z pos of lightning
channel1 = FSOUND_PlaySoundEx(FSOUND_FREE, NearThunder[m_dwThundNextToPlay], NULL, TRUE);
FSOUND_3D_SetAttributes(channel1, pos, NULL);
//Update sound with camera’s position
FSOUND_3D_Listener_SetAttributes(&listenerpos, NULL, 0, 0, 1.0f, 0, 1.0f, 0);
Thanks for any tips I’m surrely missing something
<font size=-1>[ This Message was edited by: Dansteph on 2001-12-11 07:34 ]</font>
I just hope noone confuses it with latency :smile:.
Why not a parameter FSOUND_REAL_SOUND_SPEED defaulted to FALSE (as you say lot of user don’t whant/need/think about it)
Or perhaps the abilities for the user to enter any speed for this parameter as the sound is also faster underwater But I agree this would be to much care we don’t want to write SO real game will we ?
Keep the good work
I suddenly recaled after asking this that I never heard such delay in any game…
It seem that even the movies don’t like it to much. I wonder why ? does the reality
sound less real ? 😉
I already had dirty implemented this delay
to test and I must say that a “storm” with lightning does really sound much realistic with natural delay. As for the far gun (my game is an age of sail simulator) it add this litle “touch” of reality that make the player say “Yesss that’s it!”
I’m glad you decided to add this effect for the next version of FMOD cause I’m in concern implementing also directionnal sound and distance attenuation I prefer focus on graphism that’s why I use FMOD
I don’t want to bother but when do you think the next version will be available ?
With many thanks & keep the good work
Please login first to submit.