Simple Audio Manager
1.0.1
|
Keeps tracks that you can play at a time More...
Public Member Functions | |
TrackStream (AudioStreamSystem audioSystem) | |
This method used AudioStreamSystem. If need use AudioStreamSystem.CreateTrackStream(). More... | |
void | Play () |
Play current track. More... | |
void | Stop () |
Stop current track. More... | |
void | Pause () |
Pause current track. More... | |
void | Add (AudioClip clip, AudioOption option, Transform followTarget) |
Add clip to stream. More... | |
void | Add (AudioClip clip, AudioOption option) |
Add clip to stream. More... | |
void | Add (AudioClip clip) |
Add clip to stream. More... | |
void | Add (Track track) |
Add track to stream. More... | |
void | Remove (int index) |
Remove track by index. More... | |
Track | Get (int index) |
Get track by index. More... | |
bool | IsRange (int index) |
Whether the index is valid More... | |
void | Next () |
Play next track. More... | |
AudioStreamSystem | GetBindAudioStreamSystem () |
Gets the binding AudioStreamSystem. More... | |
Properties | |
int | Count [get] |
tracks count. More... | |
Track | this[int index] [get] |
Get track by index. More... | |
bool | isPlay [get] |
Is play current track More... | |
bool | isPause [get] |
Is pause current track More... | |
bool | isStop [get] |
Is stop current track More... | |
bool | isNext [get] |
Can be played next More... | |
AudioStreamOption | option [get, set] |
Gets or sets the TrackStream option. More... | |
AudioOption | globalOption [get, set] |
Gets or sets the global option (Additive to new track) More... | |
int | nTrack [get, set] |
Gets or sets the index current track. More... | |
Track | selectTrack [get] |
Gets the select track. More... | |
Events | |
Action< TrackStream > | completeTrack |
Complete play track. More... | |
Action< TrackStream > | completeStream |
Complete play all track. More... | |
Keeps tracks that you can play at a time
TrackStream.TrackStream | ( | AudioStreamSystem | audioSystem) |
This method used AudioStreamSystem. If need use AudioStreamSystem.CreateTrackStream().
void TrackStream.Add | ( | AudioClip | clip, |
AudioOption | option, | ||
Transform | followTarget | ||
) |
Add clip to stream.
void TrackStream.Add | ( | AudioClip | clip, |
AudioOption | option | ||
) |
Add clip to stream.
void TrackStream.Add | ( | AudioClip | clip) |
Add clip to stream.
void TrackStream.Add | ( | Track | track) |
Add track to stream.
Track TrackStream.Get | ( | int | index) |
Get track by index.
index | Index. |
AudioStreamSystem TrackStream.GetBindAudioStreamSystem | ( | ) |
Gets the binding AudioStreamSystem.
bool TrackStream.IsRange | ( | int | index) |
Whether the index is valid
true
is valid; otherwise, false
. index | Index. |
void TrackStream.Next | ( | ) |
Play next track.
void TrackStream.Pause | ( | ) |
Pause current track.
void TrackStream.Play | ( | ) |
Play current track.
void TrackStream.Remove | ( | int | index) |
Remove track by index.
index | Index. |
void TrackStream.Stop | ( | ) |
Stop current track.
|
get |
tracks count.
|
getset |
Gets or sets the global option (Additive to new track)
The global option.
|
get |
Can be played next
true
if can play; otherwise, false
.
|
get |
Is pause current track
true
if is pause; otherwise, false
.
|
get |
Is play current track
true
if is play; otherwise, false
.
|
get |
Is stop current track
true
if is stop; otherwise, false
.
|
getset |
Gets or sets the index current track.
The current track index.
|
getset |
Gets or sets the TrackStream option.
The option.
|
get |
Gets the select track.
The select track.
|
get |
Get track by index.
index | Index. |
Action<TrackStream> TrackStream.completeStream |
Complete play all track.
Action<TrackStream> TrackStream.completeTrack |
Complete play track.