Simple Poker Template 0.0.1
Loading...
Searching...
No Matches
SimplePoker.Audio.SoundManager Class Reference

Singleton class for managing game sounds, including music and effects. More...

Inheritance diagram for SimplePoker.Audio.SoundManager:
SimplePoker.Singleton< SoundManager >

Public Types

enum  AUDIO_OUTPUT { MUSIC , EFFECT }
 

Public Member Functions

void SetVolume (float volume, AUDIO_OUTPUT output)
 
void PlayMusic (AudioClip audioClip, AUDIO_OUTPUT output=AUDIO_OUTPUT.MUSIC, float pitch=NORMAL_PITCH, bool loop=true)
 
void PlayOneShotSong (AudioClip audioClip, AUDIO_OUTPUT output=AUDIO_OUTPUT.EFFECT, float pitch=NORMAL_PITCH, bool loop=false)
 
void PlayOneShotSong_RandomPitch (AudioClip audioClip, AUDIO_OUTPUT output=AUDIO_OUTPUT.EFFECT, float minPitch=MIN_PITCH, float maxPitch=MAX_PITCH, bool loop=false)
 
void PlayEffectSong_GroupAudioSource (AudioClip audioClip, float pitch=NORMAL_PITCH, bool loop=false)
 
void PlayEffectSong_GroupAudioSource_RandomPitch (AudioClip audioClip, float minPitch=MIN_PITCH, float maxPitch=MAX_PITCH, bool loop=false)
 
void Mute (bool value, AUDIO_OUTPUT output)
 
void MuteAll (bool value)
 
void Stop (AUDIO_OUTPUT output)
 
void StopAll ()
 
void MusicFadeIn (float duration=1)
 
void MusicFadeIn (System.Action callback, float duration=1)
 
void MusicFadeOut (float duration=1)
 
void MusicFadeOut (System.Action callback, float duration=1)
 

Public Attributes

string ID
 

Protected Member Functions

override void Awake ()
 
- Protected Member Functions inherited from SimplePoker.Singleton< SoundManager >
override void Awake ()
 

Detailed Description

Singleton class for managing game sounds, including music and effects.

Member Enumeration Documentation

◆ AUDIO_OUTPUT

Enumerator
MUSIC 
EFFECT 

Member Function Documentation

◆ Awake()

override void SimplePoker.Audio.SoundManager.Awake ( )
protected

◆ MusicFadeIn() [1/2]

void SimplePoker.Audio.SoundManager.MusicFadeIn ( float duration = 1)

◆ MusicFadeIn() [2/2]

void SimplePoker.Audio.SoundManager.MusicFadeIn ( System::Action callback,
float duration = 1 )

◆ MusicFadeOut() [1/2]

void SimplePoker.Audio.SoundManager.MusicFadeOut ( float duration = 1)

◆ MusicFadeOut() [2/2]

void SimplePoker.Audio.SoundManager.MusicFadeOut ( System::Action callback,
float duration = 1 )

◆ Mute()

void SimplePoker.Audio.SoundManager.Mute ( bool value,
AUDIO_OUTPUT output )

◆ MuteAll()

void SimplePoker.Audio.SoundManager.MuteAll ( bool value)

◆ PlayEffectSong_GroupAudioSource()

void SimplePoker.Audio.SoundManager.PlayEffectSong_GroupAudioSource ( AudioClip audioClip,
float pitch = NORMAL_PITCH,
bool loop = false )

◆ PlayEffectSong_GroupAudioSource_RandomPitch()

void SimplePoker.Audio.SoundManager.PlayEffectSong_GroupAudioSource_RandomPitch ( AudioClip audioClip,
float minPitch = MIN_PITCH,
float maxPitch = MAX_PITCH,
bool loop = false )

◆ PlayMusic()

void SimplePoker.Audio.SoundManager.PlayMusic ( AudioClip audioClip,
AUDIO_OUTPUT output = AUDIO_OUTPUT::MUSIC,
float pitch = NORMAL_PITCH,
bool loop = true )

◆ PlayOneShotSong()

void SimplePoker.Audio.SoundManager.PlayOneShotSong ( AudioClip audioClip,
AUDIO_OUTPUT output = AUDIO_OUTPUT::EFFECT,
float pitch = NORMAL_PITCH,
bool loop = false )

◆ PlayOneShotSong_RandomPitch()

void SimplePoker.Audio.SoundManager.PlayOneShotSong_RandomPitch ( AudioClip audioClip,
AUDIO_OUTPUT output = AUDIO_OUTPUT::EFFECT,
float minPitch = MIN_PITCH,
float maxPitch = MAX_PITCH,
bool loop = false )

◆ SetVolume()

void SimplePoker.Audio.SoundManager.SetVolume ( float volume,
AUDIO_OUTPUT output )

◆ Stop()

void SimplePoker.Audio.SoundManager.Stop ( AUDIO_OUTPUT output)

◆ StopAll()

void SimplePoker.Audio.SoundManager.StopAll ( )

Member Data Documentation

◆ ID

string SimplePoker.Audio.SoundManager.ID

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