0
0

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:

[code:1jmb2xmm]
FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0);
FSOUND_SetMinHardwareChannels(32);
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);
FSOUND_SetPaused(channel1, FALSE);
FSOUND_Reverb_SetMix(channel1, FSOUND_REVERBMIX_USEDISTANCE);

//Update sound with camera’s position
listenerpos[0]=posx;
listenerpos[1]=posy;
listenerpos[2]=posz;

FSOUND_3D_Listener_SetAttributes(&listenerpos[0], NULL, 0, 0, 1.0f, 0, 1.0f, 0);
FSOUND_3D_Update();
[/code:1jmb2xmm]

Thanks for any tips I’m surrely missing something

DanSteph

<font size=-1>[ This Message was edited by: Dansteph on 2001-12-11 07:34 ]</font>

  • You must to post comments
0
0

Hello brett,

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 :smile:

I don’t want to bother but when do you think the next version will be available ?

With many thanks & keep the good work

Dan

  • You must to post comments
0
0

[quote:1p358psn]
I just hope noone confuses it with latency :smile:.
[/quote:1p358psn]

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 ? :smile:

Keep the good work

Dan

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.