true
when the sound is no longer playing.
How loud the playing sound should be played. Ranges from 0 to 1 (inclusive).
How loud the playing sound should be played. Ranges from 0 to 1 (inclusive).
Whether the playing sound should loop when it finishes.
Whether the playing sound should loop when it finishes.
Represents the maximum distance between the audio source and the listener, outside which the gain is not reduced any further.
This property is only used when using SoundDistanceModel.Linear
for distanceModel
.
Must be a positive non-zero number.
Represents the maximum distance between the audio source and the listener, outside which the gain is not reduced any further.
This property is only used when using SoundDistanceModel.Linear
for distanceModel
.
Must be a positive non-zero number.
A pitch multiplier for the playing sound. 1.0 means normal pitch. Less than 1.0 is slower. Greater than 1.0 is faster. Valid values are in the range (0,8]. Zero is invalid (it would stop playback).
A pitch multiplier for the playing sound. 1.0 means normal pitch. Less than 1.0 is slower. Greater than 1.0 is faster. Valid values are in the range (0,8]. Zero is invalid (it would stop playback).
true
when the sound is playing.
The distance from position
within which the sound will be at normal gain.
Must be a non-negative number.
The distance from position
within which the sound will be at normal gain.
Must be a non-negative number.
Describes how quickly gain should be reduced when moving away from the listener.
Its range depends on the distanceModel
used (negative values are not allowed).
SoundDistanceModel.Linear
: The range is 0 to 1.SoundDistanceModel.Inverse
: The range is 0 to Infinity.SoundDistanceModel.Exponential
: The range is 0 to Infinity.Describes how quickly gain should be reduced when moving away from the listener.
Its range depends on the distanceModel
used (negative values are not allowed).
SoundDistanceModel.Linear
: The range is 0 to 1.SoundDistanceModel.Inverse
: The range is 0 to Infinity.SoundDistanceModel.Exponential
: The range is 0 to Infinity.If a playing sound hasn't already finished, this function will stop it according to policy
.
If SoundStopPolicy.Immediate
, will halt at the end of the current frame. If SoundStopPolicy.FinishLoop
, the sound will finish playing the current (or only) loop. Default value: SoundStopPolicy.Immediate
The world coordinate where the sound is emanating from. Can be modified, and the sound will move to the new position specified.