Jacky's Simple Audio Manager  3.0.0-preview
A decentralized audio playing system for Unity, designed for simplicity and built to scale!
JSAM.AudioManagerInternal Class Reference
Inheritance diagram for JSAM.AudioManagerInternal:

Public Member Functions

void SaveVolumeSettings ()
 
void LoadVolumeSettings ()
 
void RemovePlayingSound (BaseAudioFileObject s, SoundChannelHelper h)
 
void RemovePlayingMusic (BaseAudioFileObject s, MusicChannelHelper h)
 
MusicChannelHelper PlayMusicInternal (MusicFileObject music, bool isMain)
 
MusicChannelHelper PlayMusicInternal (MusicFileObject music, Transform newTransform=null, MusicChannelHelper helper=null)
 
MusicChannelHelper PlayMusicInternal (MusicFileObject music, Vector3 position, MusicChannelHelper helper=null)
 
MusicChannelHelper FadeMusicInInternal (MusicFileObject music, float fadeInTime, bool isMain)
 
MusicChannelHelper FadeMainMusicOutInternal (float fadeOutTime)
 
MusicChannelHelper FadeMusicOutInternal (MusicFileObject music, float fadeOutTime)
 
MusicChannelHelper FadeMusicOutInternal (MusicChannelHelper helper, float fadeOutTime)
 
MusicChannelHelper StopMusicInternal (MusicFileObject music, Transform t, bool stopInstantly)
 
MusicChannelHelper StopMusicInternal (MusicFileObject s, Vector3 pos, bool stopInstantly)
 
bool StopMusicIfPlayingInternal (MusicFileObject music, Transform trans=null, bool stopInstantly=true)
 
bool StopMusicIfPlayingInternal (MusicFileObject music, Vector3 pos, bool stopInstantly=true)
 
SoundChannelHelper PlaySoundInternal (SoundFileObject sound, Transform newTransform=null, SoundChannelHelper helper=null)
 
SoundChannelHelper PlaySoundInternal (SoundFileObject sound, Vector3 position, SoundChannelHelper helper=null)
 
void StopAllSoundsInternal (bool stopInstantly=true)
 
void StopSoundInternal (SoundFileObject s, Transform t=null, bool stopInstantly=true)
 
void StopSoundInternal (SoundFileObject s, Vector3 pos, bool stopInstantly=true)
 
bool StopSoundIfPlayingInternal (SoundFileObject sound, Transform trans=null, bool stopInstantly=true)
 
bool StopSoundIfPlayingInternal (SoundFileObject sound, Vector3 pos, bool stopInstantly=true)
 
MusicChannelHelper GetFreeMusicHelper ()
 
SoundChannelHelper GetFreeSoundHelper ()
 
bool IsSoundPlayingInternal (SoundFileObject s, Transform trans)
 
bool IsSoundPlayingInternal (SoundFileObject s, Vector3 pos)
 
bool TryGetPlayingSound (SoundFileObject s, out SoundChannelHelper helper)
 
bool IsMusicPlayingInternal (MusicFileObject a, Transform trans=null)
 
bool IsMusicPlayingInternal (MusicFileObject s, Vector3 pos)
 
bool TryGetPlayingMusic (MusicFileObject a, out MusicChannelHelper helper)
 

Public Attributes

bool MasterMuted = false
 
float MasterVolume = 1
 
bool MusicMuted = false
 
float MusicVolume = 1
 
bool SoundMuted = false
 
float SoundVolume = 1
 

Static Public Attributes

static float EPSILON = 0.000001f
 A bit like float Epsilon, but large enough for the purpose of pushing the playback position of AudioSources just far enough to not throw an error More...
 
static Action OnSpatializeUpdate
 Notifies Audio Channels to follow their target. More...
 
static Action OnSpatializeLateUpdate
 Notifies Audio Channels to follow their target on LateUpdate Only invoked when Spatialize is set to true More...
 
static Action OnSpatializeFixedUpdate
 Notifies Audio Channels to follow their target on FixedUpdate Only invoked when Spatialize is set to true More...
 
static Action< float > OnTimeScaleChanged
 

Properties

MusicChannelHelper mainMusic [get]
 
float ModifiedMasterVolume [get]
 
float ModifiedMusicVolume [get]
 
float ModifiedSoundVolume [get]
 

Member Function Documentation

◆ FadeMainMusicOutInternal()

MusicChannelHelper JSAM.AudioManagerInternal.FadeMainMusicOutInternal ( float  fadeOutTime)

◆ FadeMusicInInternal()

MusicChannelHelper JSAM.AudioManagerInternal.FadeMusicInInternal ( MusicFileObject  music,
float  fadeInTime,
bool  isMain 
)

◆ FadeMusicOutInternal() [1/2]

MusicChannelHelper JSAM.AudioManagerInternal.FadeMusicOutInternal ( MusicFileObject  music,
float  fadeOutTime 
)

◆ FadeMusicOutInternal() [2/2]

MusicChannelHelper JSAM.AudioManagerInternal.FadeMusicOutInternal ( MusicChannelHelper  helper,
float  fadeOutTime 
)

◆ GetFreeMusicHelper()

MusicChannelHelper JSAM.AudioManagerInternal.GetFreeMusicHelper ( )

◆ GetFreeSoundHelper()

SoundChannelHelper JSAM.AudioManagerInternal.GetFreeSoundHelper ( )

◆ IsMusicPlayingInternal() [1/2]

bool JSAM.AudioManagerInternal.IsMusicPlayingInternal ( MusicFileObject  a,
Transform  trans = null 
)

◆ IsMusicPlayingInternal() [2/2]

bool JSAM.AudioManagerInternal.IsMusicPlayingInternal ( MusicFileObject  s,
Vector3  pos 
)

◆ IsSoundPlayingInternal() [1/2]

bool JSAM.AudioManagerInternal.IsSoundPlayingInternal ( SoundFileObject  s,
Transform  trans 
)

◆ IsSoundPlayingInternal() [2/2]

bool JSAM.AudioManagerInternal.IsSoundPlayingInternal ( SoundFileObject  s,
Vector3  pos 
)

◆ LoadVolumeSettings()

void JSAM.AudioManagerInternal.LoadVolumeSettings ( )

◆ PlayMusicInternal() [1/3]

MusicChannelHelper JSAM.AudioManagerInternal.PlayMusicInternal ( MusicFileObject  music,
bool  isMain 
)

◆ PlayMusicInternal() [2/3]

MusicChannelHelper JSAM.AudioManagerInternal.PlayMusicInternal ( MusicFileObject  music,
Transform  newTransform = null,
MusicChannelHelper  helper = null 
)

◆ PlayMusicInternal() [3/3]

MusicChannelHelper JSAM.AudioManagerInternal.PlayMusicInternal ( MusicFileObject  music,
Vector3  position,
MusicChannelHelper  helper = null 
)

◆ PlaySoundInternal() [1/2]

SoundChannelHelper JSAM.AudioManagerInternal.PlaySoundInternal ( SoundFileObject  sound,
Transform  newTransform = null,
SoundChannelHelper  helper = null 
)

◆ PlaySoundInternal() [2/2]

SoundChannelHelper JSAM.AudioManagerInternal.PlaySoundInternal ( SoundFileObject  sound,
Vector3  position,
SoundChannelHelper  helper = null 
)

◆ RemovePlayingMusic()

void JSAM.AudioManagerInternal.RemovePlayingMusic ( BaseAudioFileObject  s,
MusicChannelHelper  h 
)

◆ RemovePlayingSound()

void JSAM.AudioManagerInternal.RemovePlayingSound ( BaseAudioFileObject  s,
SoundChannelHelper  h 
)

◆ SaveVolumeSettings()

void JSAM.AudioManagerInternal.SaveVolumeSettings ( )

◆ StopAllSoundsInternal()

void JSAM.AudioManagerInternal.StopAllSoundsInternal ( bool  stopInstantly = true)

◆ StopMusicIfPlayingInternal() [1/2]

bool JSAM.AudioManagerInternal.StopMusicIfPlayingInternal ( MusicFileObject  music,
Transform  trans = null,
bool  stopInstantly = true 
)

◆ StopMusicIfPlayingInternal() [2/2]

bool JSAM.AudioManagerInternal.StopMusicIfPlayingInternal ( MusicFileObject  music,
Vector3  pos,
bool  stopInstantly = true 
)

◆ StopMusicInternal() [1/2]

MusicChannelHelper JSAM.AudioManagerInternal.StopMusicInternal ( MusicFileObject  music,
Transform  t,
bool  stopInstantly 
)

◆ StopMusicInternal() [2/2]

MusicChannelHelper JSAM.AudioManagerInternal.StopMusicInternal ( MusicFileObject  s,
Vector3  pos,
bool  stopInstantly 
)

◆ StopSoundIfPlayingInternal() [1/2]

bool JSAM.AudioManagerInternal.StopSoundIfPlayingInternal ( SoundFileObject  sound,
Transform  trans = null,
bool  stopInstantly = true 
)

◆ StopSoundIfPlayingInternal() [2/2]

bool JSAM.AudioManagerInternal.StopSoundIfPlayingInternal ( SoundFileObject  sound,
Vector3  pos,
bool  stopInstantly = true 
)

◆ StopSoundInternal() [1/2]

void JSAM.AudioManagerInternal.StopSoundInternal ( SoundFileObject  s,
Transform  t = null,
bool  stopInstantly = true 
)

◆ StopSoundInternal() [2/2]

void JSAM.AudioManagerInternal.StopSoundInternal ( SoundFileObject  s,
Vector3  pos,
bool  stopInstantly = true 
)

◆ TryGetPlayingMusic()

bool JSAM.AudioManagerInternal.TryGetPlayingMusic ( MusicFileObject  a,
out MusicChannelHelper  helper 
)

◆ TryGetPlayingSound()

bool JSAM.AudioManagerInternal.TryGetPlayingSound ( SoundFileObject  s,
out SoundChannelHelper  helper 
)

Member Data Documentation

◆ EPSILON

float JSAM.AudioManagerInternal.EPSILON = 0.000001f
static

A bit like float Epsilon, but large enough for the purpose of pushing the playback position of AudioSources just far enough to not throw an error

◆ MasterMuted

bool JSAM.AudioManagerInternal.MasterMuted = false

◆ MasterVolume

float JSAM.AudioManagerInternal.MasterVolume = 1

◆ MusicMuted

bool JSAM.AudioManagerInternal.MusicMuted = false

◆ MusicVolume

float JSAM.AudioManagerInternal.MusicVolume = 1

◆ OnSpatializeFixedUpdate

Action JSAM.AudioManagerInternal.OnSpatializeFixedUpdate
static

Notifies Audio Channels to follow their target on FixedUpdate Only invoked when Spatialize is set to true

◆ OnSpatializeLateUpdate

Action JSAM.AudioManagerInternal.OnSpatializeLateUpdate
static

Notifies Audio Channels to follow their target on LateUpdate Only invoked when Spatialize is set to true

◆ OnSpatializeUpdate

Action JSAM.AudioManagerInternal.OnSpatializeUpdate
static

Notifies Audio Channels to follow their target.

Only invoked when Spatialize is set to true

◆ OnTimeScaleChanged

Action<float> JSAM.AudioManagerInternal.OnTimeScaleChanged
static

float previousTimeScale

Invoked when the user changes the TimeScale Notifies Audio Channels to adjust pitch accordingly.

◆ SoundMuted

bool JSAM.AudioManagerInternal.SoundMuted = false

◆ SoundVolume

float JSAM.AudioManagerInternal.SoundVolume = 1

Property Documentation

◆ mainMusic

MusicChannelHelper JSAM.AudioManagerInternal.mainMusic
get

◆ ModifiedMasterVolume

float JSAM.AudioManagerInternal.ModifiedMasterVolume
get

◆ ModifiedMusicVolume

float JSAM.AudioManagerInternal.ModifiedMusicVolume
get

◆ ModifiedSoundVolume

float JSAM.AudioManagerInternal.ModifiedSoundVolume
get

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