|
Jacky's Simple Audio Manager
3.0.0-preview
A decentralized audio playing system for Unity, designed for simplicity and built to scale!
|
Public Member Functions | |
| void | Init (AudioMixerGroup defaultGroup) |
| virtual AudioSource | Play (T file) |
| virtual void | Stop (bool stopInstantly=true) |
| bool | AssignNewAudioClip () |
| Returns false if no AudioClips exists More... | |
| virtual void | SetSpatializationTarget (Transform target) |
| virtual void | SetSpatializationTarget (Vector3 position) |
| void | BeginFadeIn (float fadeTime) |
| void | BeginFadeOut (float fadeTime) |
| void | ApplyEffects () |
| void | ClearEffects () |
Public Attributes | |
| bool | Reserved = false |
| Set this to true to make AudioManager ignore this AudioChannel for Audio Playback. More... | |
Protected Member Functions | |
| virtual void | OnEnable () |
| virtual void | OnDisable () |
| virtual void | Update () |
| void | ClearProperties () |
| Called by Play() More... | |
| virtual void | OnTimeScaleChanged (float previousTimeScale) |
| void | OnUpdateVolume (float volume) |
| IEnumerator | FadeIn (float fadeTime) |
| virtual IEnumerator | FadeOut (float fadeTime) |
Protected Attributes | |
| T | audioFile |
| AudioChorusFilter | chorusFilter |
| AudioDistortionFilter | distortionFilter |
| AudioEchoFilter | echoFilter |
| AudioHighPassFilter | highPassFilter |
| AudioLowPassFilter | lowPassFilter |
| AudioReverbFilter | reverbFilter |
| AudioMixerGroup | defaultMixerGroup |
| Transform | originalParent |
Properties | |
| bool | IsFree [get] |
| Returns true if this Audio Channel is not playing any sounds and is not marked as "Reserved" More... | |
| T | AudioFile [get] |
| abstract float | Volume [get] |
| Transform | SpatializationTarget [get] |
| This property will only be assigned to if both the AudioFileObject and the AudioManager have spatialization enabled More... | |
| Vector3 | SpatializationPosition [get] |
| This property will only be assigned to if both the AudioFileObject and the AudioManager have spatialization enabled More... | |
| int | LoopStart [get] |
| int | LoopEnd [get] |
| AudioSource | AudioSource [get] |
| void JSAM.BaseAudioChannelHelper< T >.ApplyEffects | ( | ) |
| bool JSAM.BaseAudioChannelHelper< T >.AssignNewAudioClip | ( | ) |
Returns false if no AudioClips exists
| void JSAM.BaseAudioChannelHelper< T >.BeginFadeIn | ( | float | fadeTime | ) |
| void JSAM.BaseAudioChannelHelper< T >.BeginFadeOut | ( | float | fadeTime | ) |
| void JSAM.BaseAudioChannelHelper< T >.ClearEffects | ( | ) |
|
protected |
Called by Play()
|
protected |
| fadeTime | Fade-in time in seconds |
|
protectedvirtual |
| void JSAM.BaseAudioChannelHelper< T >.Init | ( | AudioMixerGroup | defaultGroup | ) |
|
protectedvirtual |
Reimplemented in JSAM.SoundChannelHelper, and JSAM.MusicChannelHelper.
|
protectedvirtual |
Reimplemented in JSAM.SoundChannelHelper, and JSAM.MusicChannelHelper.
|
protectedvirtual |
|
protected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in JSAM.SoundChannelHelper, and JSAM.MusicChannelHelper.
|
protectedvirtual |
Reimplemented in JSAM.SoundChannelHelper.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool JSAM.BaseAudioChannelHelper< T >.Reserved = false |
Set this to true to make AudioManager ignore this AudioChannel for Audio Playback.
Good if you want to reserve this channel for certain entities that can't have overlapping sounds
|
protected |
|
get |
|
get |
|
get |
Returns true if this Audio Channel is not playing any sounds and is not marked as "Reserved"
|
getprotected |
|
getprotected |
|
get |
This property will only be assigned to if both the AudioFileObject and the AudioManager have spatialization enabled
|
get |
This property will only be assigned to if both the AudioFileObject and the AudioManager have spatialization enabled
|
getprotected |