Open topic with navigation
<multimedia:sound3D>.minmax
Clamps the sound volume when under the min distance or over the max distance
<multimedia:sound3D>.minmax( |
|
min |
max |
) |
|
Remarks
If min is set to 1, then no matter how close you are to the sound, it always sounds as if you are 1 meter away. If max is set to 10, then no mater how far you are from the sound, it always sounds as if you are 10 meters away.
Return Value
None
Example
ball = viz.add( 'ball.wrl' )
sound = ball.playsound( 'arrgh.wav', viz.LOOP )
sound.minmax( 1, 10 )