AudioSource¶
More information can be found in the Unity API Reference and maybe in the Unity Manual.
Constructors¶
Constructor |
Description |
---|---|
Members¶
Member |
Description |
---|---|
Methods¶
Method |
Description |
---|---|
Gets a float[64] array of the next audio samples. |
|
Gets a float[64] array of current spectrum data using FFT. |
|
Sets the output audio mix of this audio source. |
|
Static methods¶
Method |
Description |
---|---|
Details¶
-
class
AudioSource
¶ -
AudioSource
AudioSource
()¶
-
bool
bypassEffects
¶
-
bool
bypassListenerEffects
¶
-
bool
bypassReverbZones
¶
-
float
dopplerLevel
¶
-
bool
enabled
¶
-
const GameObject
gameObject
¶
-
bool
ignoreListenerPause
¶
-
bool
ignoreListenerVolume
¶
-
const bool
isActiveAndEnabled
¶
-
const bool
isPlaying
¶
-
const bool
isVirtual
¶
-
bool
loop
¶
-
float
maxDistance
¶
-
float
minDistance
¶
-
bool
mute
¶
-
string
name
¶
-
float
panStereo
¶
-
float
pitch
¶
-
bool
playOnAwake
¶
-
int
priority
¶
-
float
reverbZoneMix
¶
-
float
spatialBlend
¶
-
bool
spatialize
¶
-
bool
spatializePostEffects
¶
-
float
spread
¶
-
string
tag
¶
-
float
time
¶
-
int
timeSamples
¶
-
float
volume
¶
-
bool
CompareTag
(string tag)¶
-
bool
GetAmbisonicDecoderFloat
(int index, float value)¶
-
int
GetHashCode
()¶
-
void
GetOutputData
(array<float> samples, int channel)¶
-
array<float>
GetOutputData
(int channel)¶ Gets a float[64] array of the next audio samples.
-
bool
GetSpatializerFloat
(int index, float value)¶
-
array<float>
GetSpectrumData
(int channel)¶ Gets a float[64] array of current spectrum data using FFT.
-
void
Pause
()¶
-
void
Play
()¶
-
void
Play
(UInt64 delay)¶
-
void
PlayDelayed
(float delay)¶
-
void
PlayScheduled
(double time)¶
-
bool
SetAmbisonicDecoderFloat
(int index, float value)¶
-
void
SetOutputAudioMixer
(AudioMixer mixer)¶ Sets the output audio mix of this audio source.
-
void
SetScheduledEndTime
(double time)¶
-
void
SetScheduledStartTime
(double time)¶
-
bool
SetSpatializerFloat
(int index, float value)¶
-
void
Stop
()¶
-
string
ToString
()¶
-
void
UnPause
()¶
-
AudioSource