EazySoundManager Class

Eazy Sound Manager API

EazySoundManager Class

Static class responsible for playing and managing audio and sounds.
Inheritance Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          Hellmade.SoundEazySoundManager

Namespace:  Hellmade.Sound
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class EazySoundManager : MonoBehaviour

The EazySoundManager type exposes the following members.

Constructors
  NameDescription
Public methodEazySoundManager
Initializes a new instance of the EazySoundManager class
Top
Properties
  NameDescription
Public propertyStatic memberGameobject
The gameobject that the sound manager is attached to
Public propertyStatic memberGlobalMusicVolume
Global music volume
Public propertyStatic memberGlobalSoundsVolume
Global sounds volume
Public propertyStatic memberGlobalUISoundsVolume
Global UI sounds volume
Public propertyStatic memberGlobalVolume
Global volume
Public propertyStatic memberIgnoreDuplicateMusic
When set to true, new music audios that have the same audio clip as any other music audios, will be ignored
Public propertyStatic memberIgnoreDuplicateSounds
When set to true, new sound audios that have the same audio clip as any other sound audios, will be ignored
Public propertyStatic memberIgnoreDuplicateUISounds
When set to true, new UI sound audios that have the same audio clip as any other UI sound audios, will be ignored
Top
Methods
  NameDescription
Public methodStatic memberGetAudio(Int32)
Returns the Audio that has as its id the audioID if one is found, returns null if no such Audio is found
Public methodStatic memberGetAudio(AudioClip)
Returns the first occurrence of Audio that plays the given audioClip. Returns null if no such Audio is found
Public methodStatic memberGetMusicAudio(Int32)
Returns the music Audio that has as its id the audioID if one is found, returns null if no such Audio is found
Public methodStatic memberGetMusicAudio(AudioClip)
Returns the first occurrence of music Audio that plays the given audioClip. Returns null if no such Audio is found
Public methodStatic memberGetSoundAudio(Int32)
Returns the sound fx Audio that has as its id the audioID if one is found, returns null if no such Audio is found
Public methodStatic memberGetSoundAudio(AudioClip)
Returns the first occurrence of sound Audio that plays the given audioClip. Returns null if no such Audio is found
Public methodStatic memberGetUISoundAudio(Int32)
Returns the UI sound fx Audio that has as its id the audioID if one is found, returns null if no such Audio is found
Public methodStatic memberGetUISoundAudio(AudioClip)
Returns the first occurrence of UI sound Audio that plays the given audioClip. Returns null if no such Audio is found
Public methodStatic memberPauseAll
Pause all audio playing
Public methodStatic memberPauseAllMusic
Pause all music playing
Public methodStatic memberPauseAllSounds
Pause all sound fx playing
Public methodStatic memberPauseAllUISounds
Pause all UI sound fx playing
Public methodStatic memberPlayMusic(AudioClip)
Play background music
Public methodStatic memberPlayMusic(AudioClip, Single)
Play background music
Public methodStatic memberPlayMusic(AudioClip, Single, Boolean, Boolean)
Play background music
Public methodStatic memberPlayMusic(AudioClip, Single, Boolean, Boolean, Single, Single)
Play background music
Public methodStatic memberPlayMusic(AudioClip, Single, Boolean, Boolean, Single, Single, Single, Transform)
Play background music
Public methodStatic memberPlaySound(AudioClip)
Play a sound fx
Public methodStatic memberPlaySound(AudioClip, Boolean)
Play a sound fx
Public methodStatic memberPlaySound(AudioClip, Single)
Play a sound fx
Public methodStatic memberPlaySound(AudioClip, Single, Boolean, Transform)
Play a sound fx
Public methodStatic memberPlayUISound(AudioClip)
Play a UI sound fx
Public methodStatic memberPlayUISound(AudioClip, Single)
Play a UI sound fx
Public methodStatic memberPrepareMusic(AudioClip)
Prepares and initializes background music
Public methodStatic memberPrepareMusic(AudioClip, Single)
Prepares and initializes background music
Public methodStatic memberPrepareMusic(AudioClip, Single, Boolean, Boolean)
Prepares and initializes background music
Public methodStatic memberPrepareMusic(AudioClip, Single, Boolean, Boolean, Single, Single)
Prerpares and initializes background music
Public methodStatic memberPrepareMusic(AudioClip, Single, Boolean, Boolean, Single, Single, Single, Transform)
Prepares and initializes background music
Public methodStatic memberPrepareSound(AudioClip)
Prepares and initializes a sound fx
Public methodStatic memberPrepareSound(AudioClip, Boolean)
Prepares and initializes a sound fx
Public methodStatic memberPrepareSound(AudioClip, Single)
Prepares and initializes a sound fx
Public methodStatic memberPrepareSound(AudioClip, Single, Boolean, Transform)
Prepares and initializes a sound fx
Public methodStatic memberPrepareUISound(AudioClip)
Prepares and initializes a UI sound fx
Public methodStatic memberPrepareUISound(AudioClip, Single)
Prepares and initializes a UI sound fx
Public methodStatic memberRestoreAudioFromPool
Restores and re-adds a pooled audio to its corresponding audio dictionary
Public methodStatic memberResumeAll
Resume all audio playing
Public methodStatic memberResumeAllMusic
Resume all music playing
Public methodStatic memberResumeAllSounds
Resume all sound fx playing
Public methodStatic memberResumeAllUISounds
Resume all UI sound fx playing
Public methodStatic memberStopAll
Stop all audio playing
Public methodStatic memberStopAll(Single)
Stop all audio playing
Public methodStatic memberStopAllMusic
Stop all music playing
Public methodStatic memberStopAllMusic(Single)
Stop all music playing
Public methodStatic memberStopAllSounds
Stop all sound fx playing
Public methodStatic memberStopAllUISounds
Stop all UI sound fx playing
Top
See Also