|
static DeAudioSource | Crossfade (DeAudioClipData clipData, float fadeDuration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades out then stops all sources in the given DeAudioClipData group, while starting the given DeAudioClipData with a fade-in effect. More...
|
|
static DeAudioSource | Crossfade (DeAudioGroupId groupId, AudioClip clip, float volume=1, float pitch=1, bool loop=false, float fadeDuration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades out then stops all sources in the given group, while starting the given clip with a fade-in effect. More...
|
|
static void | FadeIn (float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades in the global volume More...
|
|
static void | FadeIn (DeAudioGroupId groupId, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades in the given group's volume More...
|
|
static void | FadeIn (DeAudioGroupId groupId, AudioClip clip, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Starts playing the given clip with a fade-in volume effect More...
|
|
static void | FadeIn (AudioClip clip, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Starts playing the given clip external to any group, with a fade-in volume effect More...
|
|
static void | FadeIn (DeAudioClipData clipData, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Starts playing the given DeAudioClipData with a fade-in volume effect More...
|
|
static void | FadeOut (float duration=1.5f, bool ignoreTimeScale=true, bool stopOnComplete=true, TweenCallback onComplete=null) |
| Fades out the global volume More...
|
|
static void | FadeOut (DeAudioGroupId groupId, float duration=1.5f, bool ignoreTimeScale=true, bool stopOnComplete=true, TweenCallback onComplete=null) |
| Fades out the given group's volume More...
|
|
static void | FadeOut (AudioClip clip, float duration=1.5f, bool ignoreTimeScale=true, bool stopOnComplete=true, TweenCallback onComplete=null) |
| Fades out the given clip's volume More...
|
|
static void | FadeSourcesIn (float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades in the volume of every source without touching global and group volumes More...
|
|
static void | FadeSourcesIn (DeAudioGroupId groupId, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades in the volume of each source in the given group (not the given group's volume) More...
|
|
static void | FadeSourcesOut (float duration=1.5f, bool ignoreTimeScale=true, bool stopOnComplete=true, TweenCallback onComplete=null) |
| Fades out the volume of every source without touching global and group volumes More...
|
|
static void | FadeSourcesOut (DeAudioGroupId groupId, float duration=1.5f, bool ignoreTimeScale=true, bool stopOnComplete=true, TweenCallback onComplete=null) |
| Fades out the volume of each source in the given group (not the given group's volume) More...
|
|
static void | FadeSourcesTo (float to, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades the volume of every source to the given value without touching global and group volumes More...
|
|
static void | FadeSourcesTo (DeAudioGroupId groupId, float to, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades the volume of each source in the given group (not the given group's volume) to the given value More...
|
|
static void | FadeTo (float to, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades the global volume to the given value More...
|
|
static void | FadeTo (DeAudioGroupId groupId, float to, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades the given group's volume to the given value More...
|
|
static void | FadeTo (AudioClip clip, float to, float duration=1.5f, bool ignoreTimeScale=true, TweenCallback onComplete=null) |
| Fades the given clip's volume to the given value More...
|
|
static DeAudioGroup | GetAudioGroup (DeAudioGroupId groupId) |
| Returns the DeAudioGroup with the given ID, or NULL if there is none More...
|
|
static AudioMixerGroup | GetMixerGroup (DeAudioGroupId groupId) |
| Returns the AudioMixerGroup for DeAudioGroup with the given ID, or null if there is none More...
|
|
static bool | Init () |
| Creates a DeAudioManager instance (if it's not present already) and sets it as DontDestroyOnLoad. Returns TRUE if the initialization is successful, FALSE otherwise. More...
|
|
static bool | Init (string resourcePath) |
| Instantiates the DeAudioManager prefab at the given Resources path (if it's not present already) and sets it as DontDestroyOnLoad. Returns TRUE if the initialization is successful, FALSE otherwise. More...
|
|
static bool | Init (DeAudioGroup[] audioGroups) |
| Creates a DeAudioManager instance (if it's not present already), sets it as DontDestroyOnLoad, and sets it with the given groups. Returns TRUE if the initialization is successful, FALSE otherwise. More...
|
|
static DeAudioSource | Play (DeAudioClipData clipData) |
| Plays the given DeAudioClipData on the stored group, with the stored volume, pitch and loop settings. A DeAudioGroup with the given ID must exist in order for the sound to actually play. More...
|
|
static DeAudioSource | Play (DeAudioGroupId groupId, AudioClip clip, float volume=1, float pitch=1, bool loop=false) |
| Plays the given sound with the given options and using the given group id. A DeAudioGroup with the given ID must exist in order for the sound to actually play. More...
|
|
static DeAudioSource | Play (AudioClip clip, float volume=1, float pitch=1, bool loop=false) |
| Plays the given sound external to any group, using the given options. More...
|
|
static void | SetVolume (float volume) |
| Sets the global volume (same as setting globalVolume directly More...
|
|
static void | SetVolume (DeAudioGroupId groupId, float volume) |
| Sets the volume for the given group More...
|
|
static void | SetVolume (AudioClip clip, float volume) |
| Sets the volume for the given clip More...
|
|
static void | Stop () |
| Stops all sounds More...
|
|
static void | Stop (DeAudioGroupId groupId) |
| Stops all sounds for the given group More...
|
|
static void | Stop (AudioClip clip) |
| Stops all sounds for the given clip More...
|
|
static void | Unlock () |
| Unlocks all DeAudioSource instances More...
|
|
static void | Unlock (DeAudioGroupId groupId) |
| Unlocks all DeAudioSource instances for the given group More...
|
|
static void | Unlock (AudioClip clip) |
| Unlocks all DeAudioSource instances for the given clip More...
|
|
Global AudioManager. Only use its static methods.
Must be instantiated only once per project (either manually or via code), and its GameObject is set automatically to DontDestroyOnLoad.