![]() |
Falco Engine 3.9.0.1 (beta)
|
Public Member Functions | |
void | Play () |
Play current audio clip More... | |
void | Pause () |
Pause playing More... | |
void | Resume () |
Resume playing More... | |
void | Stop () |
Stop playing More... | |
int | GetTotalLength () |
Get total length in seconds More... | |
int | GetPlaybackPosition () |
Get current playback position in seconds More... | |
void | SetPlaybackPosition (int seconds) |
Set current playback position in seconds More... | |
Properties | |
bool | isPlaying [get] |
Returns if this audio source is playing More... | |
bool | isPaused [get] |
Returns if this audio source is paused More... | |
bool | loop [getset] |
Return or set whether the audio clip replays after it finishes or not More... | |
bool | playOnStart [getset] |
Returns or sets if audio source should start playing after scene is loaded More... | |
float | pitch [getset] |
The pitch of the audio source More... | |
float | volume [getset] |
The volume of the audio source (0.0 to 1.0) More... | |
float | minDistance [getset] |
Within the min distance the audio source will cease to grow louder in volume More... | |
float | maxDistance [getset] |
Max distance is the distance where the sound is completely inaudible More... | |
bool | is2D [getset] |
Is this audio source 2D or 3D? More... | |
AudioClip | audioClip [getset] |
Get or set the audio clip for this audio source More... | |
![]() | |
bool | enabled [getset] |
Enable or disable this component More... | |
GameObject | gameObject [get] |
Get game object at which this component is attached More... | |
bool | isUiComponent [get] |
Returns if this component is derived from UIElement (or this is a canvas) or not More... | |
Additional Inherited Members | |
![]() | |
Component () | |
Definition at line 7 of file AudioSource.cs.
int FalcoEngine.AudioSource.GetPlaybackPosition | ( | ) |
Get current playback position in seconds
int FalcoEngine.AudioSource.GetTotalLength | ( | ) |
Get total length in seconds
void FalcoEngine.AudioSource.Pause | ( | ) |
Pause playing
Definition at line 77 of file AudioSource.cs.
void FalcoEngine.AudioSource.Play | ( | ) |
Play current audio clip
Definition at line 69 of file AudioSource.cs.
void FalcoEngine.AudioSource.Resume | ( | ) |
Resume playing
Definition at line 85 of file AudioSource.cs.
void FalcoEngine.AudioSource.SetPlaybackPosition | ( | int | seconds | ) |
Set current playback position in seconds
seconds |
void FalcoEngine.AudioSource.Stop | ( | ) |
Stop playing
Definition at line 93 of file AudioSource.cs.
|
getset |
Get or set the audio clip for this audio source
Definition at line 64 of file AudioSource.cs.
|
getset |
Is this audio source 2D or 3D?
Definition at line 59 of file AudioSource.cs.
|
get |
Returns if this audio source is paused
Definition at line 24 of file AudioSource.cs.
|
get |
Returns if this audio source is playing
Definition at line 19 of file AudioSource.cs.
|
getset |
Return or set whether the audio clip replays after it finishes or not
Definition at line 29 of file AudioSource.cs.
|
getset |
Max distance is the distance where the sound is completely inaudible
Definition at line 54 of file AudioSource.cs.
|
getset |
Within the min distance the audio source will cease to grow louder in volume
Definition at line 49 of file AudioSource.cs.
|
getset |
The pitch of the audio source
Definition at line 39 of file AudioSource.cs.
|
getset |
Returns or sets if audio source should start playing after scene is loaded
Definition at line 34 of file AudioSource.cs.
|
getset |
The volume of the audio source (0.0 to 1.0)
Definition at line 44 of file AudioSource.cs.