Antura  1.1.0
Antura.Audio.AudioManager Class Reference

Handles audio requests throughout the application More...

Inheritance diagram for Antura.Audio.AudioManager:

Public Member Functions

void ClearConfiguration ()
 
void UpdateSfxConfiguration (SfxConfiguration conf)
 
void UpdateMusicConfiguration (MusicConfiguration conf)
 
MusicConfiguration GetMusicConfiguration (Music music)
 
SfxConfiguration GetSfxConfiguration (Sfx sfx)
 
void OnAppPause (bool pauseStatus)
 
void ToggleMusic ()
 
void PlayMusic (Music newMusic)
 
void StopMusic ()
 
IAudioSource PlaySound (Sfx sfx)
 Play a soundFX More...
 
void StopSounds ()
 
IAudioSource PlayLetter (LetterData data, bool exclusive=true)
 
IAudioSource PlayWord (WordData data, bool exclusive=true)
 
IAudioSource PlayPhrase (PhraseData data, bool exclusive=true)
 
void StopLettersWordsPhrases ()
 
IAudioSource PlayDialogue (string localizationData_id)
 
IAudioSource PlayDialogue (Database.LocalizationDataId id)
 
IAudioSource PlayDialogue (Database.LocalizationData data, bool clearPreviousCallback=false)
 
IAudioSource PlayDialogue (string localizationData_id, System.Action callback)
 
IAudioSource PlayDialogue (Database.LocalizationDataId id, System.Action callback, bool clearPreviousCallback=false)
 
IAudioSource PlayDialogue (Database.LocalizationData data, System.Action callback, bool clearPreviousCallback=false)
 
void StopDialogue (bool clearPreviousCallback)
 
AudioClip GetAudioClip (LocalizationData data)
 
AudioClip GetAudioClip (LetterData data)
 
AudioClip GetAudioClip (WordData data)
 
AudioClip GetAudioClip (PhraseData data)
 
AudioClip GetAudioClip (Sfx sfx)
 
SfxConfiguration GetConfiguration (Sfx sfx)
 
AudioClip GetAudioClip (Music music)
 
void ClearCache ()
 
void Update ()
 
void OnAfterDeserialize ()
 
void OnBeforeSerialize ()
 
IAudioSource PlaySound (AudioClip clip)
 
IAudioSource PlayMusic (AudioClip clip)
 
void OnAudioStarted (AudioSourceWrapper source)
 Used by AudioSourceWrappers. More...
 

Static Public Attributes

static AudioManager I
 

Properties

bool IsAppPaused [get]
 
bool MusicEnabled [get, set]
 

Detailed Description

Handles audio requests throughout the application

Member Function Documentation

◆ ClearCache()

void Antura.Audio.AudioManager.ClearCache ( )

◆ ClearConfiguration()

void Antura.Audio.AudioManager.ClearConfiguration ( )

◆ GetAudioClip() [1/6]

AudioClip Antura.Audio.AudioManager.GetAudioClip ( LocalizationData  data)

◆ GetAudioClip() [2/6]

AudioClip Antura.Audio.AudioManager.GetAudioClip ( LetterData  data)

◆ GetAudioClip() [3/6]

AudioClip Antura.Audio.AudioManager.GetAudioClip ( WordData  data)

◆ GetAudioClip() [4/6]

AudioClip Antura.Audio.AudioManager.GetAudioClip ( PhraseData  data)

◆ GetAudioClip() [5/6]

AudioClip Antura.Audio.AudioManager.GetAudioClip ( Sfx  sfx)

◆ GetAudioClip() [6/6]

AudioClip Antura.Audio.AudioManager.GetAudioClip ( Music  music)

◆ GetConfiguration()

SfxConfiguration Antura.Audio.AudioManager.GetConfiguration ( Sfx  sfx)

◆ GetMusicConfiguration()

MusicConfiguration Antura.Audio.AudioManager.GetMusicConfiguration ( Music  music)

◆ GetSfxConfiguration()

SfxConfiguration Antura.Audio.AudioManager.GetSfxConfiguration ( Sfx  sfx)

◆ OnAfterDeserialize()

void Antura.Audio.AudioManager.OnAfterDeserialize ( )

◆ OnAppPause()

void Antura.Audio.AudioManager.OnAppPause ( bool  pauseStatus)

◆ OnAudioStarted()

void Antura.Audio.AudioManager.OnAudioStarted ( AudioSourceWrapper  source)

Used by AudioSourceWrappers.

Parameters
source

◆ OnBeforeSerialize()

void Antura.Audio.AudioManager.OnBeforeSerialize ( )

◆ PlayDialogue() [1/6]

IAudioSource Antura.Audio.AudioManager.PlayDialogue ( string  localizationData_id)

◆ PlayDialogue() [2/6]

IAudioSource Antura.Audio.AudioManager.PlayDialogue ( Database.LocalizationDataId  id)

◆ PlayDialogue() [3/6]

IAudioSource Antura.Audio.AudioManager.PlayDialogue ( Database.LocalizationData  data,
bool  clearPreviousCallback = false 
)

◆ PlayDialogue() [4/6]

IAudioSource Antura.Audio.AudioManager.PlayDialogue ( string  localizationData_id,
System.Action  callback 
)

◆ PlayDialogue() [5/6]

IAudioSource Antura.Audio.AudioManager.PlayDialogue ( Database.LocalizationDataId  id,
System.Action  callback,
bool  clearPreviousCallback = false 
)

◆ PlayDialogue() [6/6]

IAudioSource Antura.Audio.AudioManager.PlayDialogue ( Database.LocalizationData  data,
System.Action  callback,
bool  clearPreviousCallback = false 
)

◆ PlayLetter()

IAudioSource Antura.Audio.AudioManager.PlayLetter ( LetterData  data,
bool  exclusive = true 
)

◆ PlayMusic() [1/2]

void Antura.Audio.AudioManager.PlayMusic ( Music  newMusic)

◆ PlayMusic() [2/2]

IAudioSource Antura.Audio.AudioManager.PlayMusic ( AudioClip  clip)

◆ PlayPhrase()

IAudioSource Antura.Audio.AudioManager.PlayPhrase ( PhraseData  data,
bool  exclusive = true 
)

◆ PlaySound() [1/2]

IAudioSource Antura.Audio.AudioManager.PlaySound ( Sfx  sfx)

Play a soundFX

Parameters
sfxSfx.

◆ PlaySound() [2/2]

IAudioSource Antura.Audio.AudioManager.PlaySound ( AudioClip  clip)

◆ PlayWord()

IAudioSource Antura.Audio.AudioManager.PlayWord ( WordData  data,
bool  exclusive = true 
)

◆ StopDialogue()

void Antura.Audio.AudioManager.StopDialogue ( bool  clearPreviousCallback)

◆ StopLettersWordsPhrases()

void Antura.Audio.AudioManager.StopLettersWordsPhrases ( )

◆ StopMusic()

void Antura.Audio.AudioManager.StopMusic ( )

◆ StopSounds()

void Antura.Audio.AudioManager.StopSounds ( )

◆ ToggleMusic()

void Antura.Audio.AudioManager.ToggleMusic ( )

◆ Update()

void Antura.Audio.AudioManager.Update ( )

◆ UpdateMusicConfiguration()

void Antura.Audio.AudioManager.UpdateMusicConfiguration ( MusicConfiguration  conf)

◆ UpdateSfxConfiguration()

void Antura.Audio.AudioManager.UpdateSfxConfiguration ( SfxConfiguration  conf)

Member Data Documentation

◆ I

AudioManager Antura.Audio.AudioManager.I
static

Property Documentation

◆ IsAppPaused

bool Antura.Audio.AudioManager.IsAppPaused
get

◆ MusicEnabled

bool Antura.Audio.AudioManager.MusicEnabled
getset

The documentation for this class was generated from the following file: