0
0

Well, I’ve got a little… problem ๐Ÿ˜‰

The 3d sound works perfectly, but when in my code I use:

[code:1ejiznr8]FSOUND_Sample_SetMinMaxDistance(samp1, 100.0, 900.0);[/code:1ejiznr8]

if my source go further then 900.0 (meters! :p) away there is still a little piece of sound playing in the background. With the FSOUND_Sample_SetMinMaxDistance, the max distance is supposed to be the distance where the sound become non audible ? true ? So how could I make the sound quiet ?

Thanks.

  • You must to post comments
0
0

Straight from the docs:

[b:2tlh6fnb]MinDistance is the minimum distance that the sound emitter will cease to continue growing louder at (as it approaches the listener). Within the mindistance it stays at the constant loudest volume possible. Outside of this mindistance it begins to attenuate.

MaxDistance is the distance a sound stops attenuating at. Beyond this point it will stay at the volume it would be at maxdistance units from the listener and will not attenuate any more.[/b:2tlh6fnb]

Another tip from the docs:
[b:2tlh6fnb]Some people have the confusion that maxdistance is the point the sound will fade out to, this is not the case.[/b:2tlh6fnb]

In short, leave MaxDistance with it’s default value of [b:2tlh6fnb]1000000000.0[/b:2tlh6fnb].

  • You must to post comments
0
0

[code:2wqoqx21]FSOUND_Sample_SetMinMaxDistance(samp1, 10000.0, 20000.0);[/code:2wqoqx21]

ok… so please tell me why between a distance of 11000.0 to 20000.0 there is absolutly no difference of volume ?
(I have moved the listener with FSOUND_3D_Listener_SetAttributes in the specified range…)

So how could I change this ?

  • You must to post comments
0
0

oh no this was not the problem ๐Ÿ˜‰

My problem was in fact, after the MinDistance…
Well, the doc says that from the MinDistance to the MaxDistance the sound starts to fade out ok ?

But in my example, the problem is that the sound just fade out between 10000.0m and 11000.0m (where it reachs the minimum sound level as explain in the doc for the MaxDistance…), Problem: this is NOT the MaxDistance :/

So my question was; why between a distance of 11000.0m to 20000.0m the sound volume doesn’t (fade out)… whereas the MaxDistance is supposed to be 20000.0m.

[code:236a0kjm]FSOUND_Sample_SetMinMaxDistance(samp1, 10000.0, 20000.0);[/code:236a0kjm]

And now I would like to correct this, and making the sound fade out until 20000.0m, Is it possible ? How should I do ?

  • You must to post comments
0
0

oki I’ve understood ๐Ÿ˜‰

thx brett ๐Ÿ˜‰

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.