Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.60

Description

Description:Sets the amplitude of a sound source object.

The accepted range is 0 or higher. A value of 1.0 means unattenuated / unchanged. To use decibels in this command, use the formula 10^(dB/20). Each division by 2 equals an attenuation of -6dB. Each multiplication by 2 equals an amplification of +6dB. A value of 0 disables the sound. A sound with a value above 1.0 may be clipped.

Syntax

Syntax:setSoundSourceAmplitude amplitude
Parameters:
  • amplitude: Number - Sound amplitude.
Return Value:Nothing

Examples

Examples:
setSoundSourceAmplitude .1;
setSoundSourceAmplitude (10^(-6/20)) //set sound amplitude to -6 dB;

Additional Information

See also: getSoundSourceAmplitude, setSoundSourceVolume
Multiplayer:
Problems:

Notes