HKI Core
|
This is a AudioPlayer that can play playlist or SoundClips. It allows to play multiple clips at once or only one clip but with fading between clips or immediate switching of clips. More...
Classes | |
class | AudioPlayerSettings |
Public Member Functions | |
void | Setup (AudioPlayerSettings settings) |
void | PlayPlaylist (bool playPlaylist, bool debugLog=true) |
void | ChangePlaylist (Playlist playlist) |
void | ChangePlaylist (Playlist playlist, bool playPlaylist) |
void | PlaySoundClip (SoundClip clip) |
void | PlayAudioLocalization (AudioLocalization audioLocalization) |
void | PlayAudioClip (AudioClip clip, float volume, float pitch) |
void | StopPlayingAllClips () |
Properties | |
AudioPlayerSettings | GetSettings [get] |
bool | IsPlayingPlaylist [get] |
Playlist | GetCurrentPlaylist [get] |
Private Member Functions | |
AudioSource | CreateAudioSource () |
IEnumerator | PlayClipWithCrossfade (AudioClip clip, float volume, float pitch) |
IEnumerator | PlayNextSoundClipOfPlaylist (float waitTime) |
Private Attributes | |
AudioPlayerSettings | currentSettings = null |
List< AudioSource > | audioSources = new List<AudioSource>() |
int | currentMainAudioSourceId = 0 |
bool | isPlayingPlaylist = false |
Playlist | currentPlaylist = null |
Coroutine | crossfadeCoroutine = null |
Coroutine | playNextSoundClipOfPlaylistCoroutine = null |
This is a AudioPlayer that can play playlist or SoundClips. It allows to play multiple clips at once or only one clip but with fading between clips or immediate switching of clips.
This SimpleAudioPlayer won't be setup if created if you want a ready to use player you need to use the AudioPlayer.
Definition at line 14 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 167 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 181 of file SimpleAudioPlayer.cs.
|
inlineprivate |
Definition at line 316 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 231 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 205 of file SimpleAudioPlayer.cs.
|
inlineprivate |
Definition at line 329 of file SimpleAudioPlayer.cs.
|
inlineprivate |
Definition at line 363 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 141 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 187 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 100 of file SimpleAudioPlayer.cs.
|
inline |
Definition at line 299 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 84 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 90 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 85 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 88 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 82 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 87 of file SimpleAudioPlayer.cs.
|
private |
Definition at line 91 of file SimpleAudioPlayer.cs.
|
get |
Definition at line 97 of file SimpleAudioPlayer.cs.
|
get |
Definition at line 94 of file SimpleAudioPlayer.cs.
|
get |
Definition at line 96 of file SimpleAudioPlayer.cs.