Battle Talent  V11
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CrossLink.AudioMgr Class Reference

Used to play sound Sound resources need to be located under the path of "Audio/Sound/" More...

Inherits CrossLink.CoreMgr.

Public Member Functions

AudioListener GetListener ()
 
void Init ()
 
Transform GetListenerTrans ()
 
bool IsFarAwayFromListener (Vector3 pos)
 
bool IsCloseToListener (Vector3 pos)
 
AudioMixerGroup GetMixerGroup (MixerType mt)
 
AudioMixer GetMasterMixer ()
 
void ResetSnapshot ()
 
void SetMixerPitch (float pitch)
 
Transform GetSoundRoot ()
 
override void OnStateClear ()
 
AudioInfo PlaySoundClip (string[] clips, bool loop=false, float volBase=0.5f, float pitchBase=1f)
 
AudioInfo PlaySoundClip (string[] clips, Vector3 pos, bool loop=false, float volBase=0.5f, float pitchBase=1f)
 
AudioInfo PlaySoundClip (string clip, bool loop=false, float volBase=0.5f, float pitchBase=1f)
 
AudioInfo TryToFindAudioInfo (int playid)
 
AudioInfo PlaySoundClip (string clip, Vector3 pos, bool loop=false, float volBase=0.5f, float pitchBase=1f)
 
void PlayClip (AudioInfo sound, float volBase)
 
void StopGiveBack (AudioInfo sound)
 
void GiveBackAndLerpToZero (AudioInfo sound, float sec=0.2f)
 
void GiveBackSound (AudioInfo sound)
 

Static Public Member Functions

static AudioClip LoadBgm (string clipName, bool cache=false)
 
static void SetAsGlobalSoundOnce ()
 
static void CloseGlobalSoundOnce ()
 

Static Public Attributes

const string SOUND_PATH = "Audio/Sound/"
 
const string MUSIC_PATH = "Audio/Music/"
 
const string AUOBJ_PATH = "Audio/AudioObj"
 
const float MIN_VOL = 0.05f
 
static AudioMgr Instance = new AudioMgr()
 

Detailed Description

Used to play sound Sound resources need to be located under the path of "Audio/Sound/"