Sound
(NOTE) Changes the left and right channel volumes of its input SoundNode's audio separately.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
InterpolateLeftVolume | LeftVolume | soundnode | |
InterpolateRightVolume | RightVolume | ||
InterpolateVolumes | SumToMono |
Properties
LeftVolume : real
The volume multiplier applied to audio in the left channel.
var LeftVolume : Real
RightVolume : real
The volume multiplier applied to audio in the right channel.
var RightVolume : Real
SumToMono : boolean
If this property is true, the audio will be combined into a single channel before being split between the right and left channels. If it is false and the audio has more than two channels, it will be combined into only two channels before being processed.
var SumToMono : Boolean
Methods
InterpolateLeftVolume : Void
Interpolates the LeftVolume property from its current value to the value passed in as the first parameter, over the number of seconds passed in as the second parameter. |Name|Type|Description| |---|---|---| |volume|real| | |time|real| |
function InterpolateLeftVolume(volume : Real, time : Real)
InterpolateRightVolume : Void
Interpolates the RightVolume property from its current value to the value passed in as the first parameter, over the number of seconds passed in as the second parameter. |Name|Type|Description| |---|---|---| |volume|real| | |time|real| |
function InterpolateRightVolume(volume : Real, time : Real)
InterpolateVolumes : Void
Interpolates both left and right volume properties at once. The first parameter is the value to change the LeftVolume to, the second is the RightVolume, and the third is the number of seconds to use for the interpolation. |Name|Type|Description| |---|---|---| |leftVolume|real| | |rightVolume|real| | |time|real| |
function InterpolateVolumes(leftVolume : Real, rightVolume : Real, time : Real)