SoundSource
The class of the SoundSource component
Ami.BroAudio
public
Public Variables
IsPlaying
bool
Whether the CurrentPlayer is playing
Public Methods
void
SoundID id, Vector3 position
Plays audio in 3D space at the given position (SpatialBlend will be set to 3D automatically)
void
SoundID id, Transform followTarget
Plays audio in 3D space and keeps it following the target continuously (SpatialBlend will be set to 3D automatically)
Stop
void
Stop playing audio
void
float fadeOut
Stop playing audio by the given fadeOut time
SetVolume
void
float volume
Immediately sets the volume of the currently playing player
void
float volume, float fadeTime
Adjusts the volume of the currently playing player over the specified fade duration
SetPitch
void
float pitch
Immediately sets the pitch of the currently playing player
void
float pitch, BroAudioType audioType
Adjusts the pitch of the currently playing player over the specified fade duration
Last updated