C# Class FlyingKite.Managers.SoundManager

Inheritance: Service
Show file Open project: WaveEngine/QuickStarters Class Usage Examples

Public Methods

Method Description
PlaySound ( SOUNDS sound ) : SoundInstance

Plays the sound.

PlaySound ( SOUNDS sound, bool loop ) : SoundInstance

Plays the sound.

PlaySound ( SOUNDS sound, float volume ) : SoundInstance

Plays the sound.

PlaySound ( SOUNDS sound, float volume, bool loop ) : SoundInstance

Plays the sound.

Protected Methods

Method Description
Initialize ( ) : void

Initializes a new instance of the SoundsManager class.

Terminate ( ) : void

Private Methods

Method Description
LoadSound ( SOUNDS sound, string file ) : void

Loads the sound.

Method Details

Initialize() protected method

Initializes a new instance of the SoundsManager class.
protected Initialize ( ) : void
return void

PlaySound() public method

Plays the sound.
public PlaySound ( SOUNDS sound ) : SoundInstance
sound SOUNDS The sound.
return SoundInstance

PlaySound() public method

Plays the sound.
public PlaySound ( SOUNDS sound, bool loop ) : SoundInstance
sound SOUNDS The sound.
loop bool if set to true [loop].
return SoundInstance

PlaySound() public method

Plays the sound.
public PlaySound ( SOUNDS sound, float volume ) : SoundInstance
sound SOUNDS The sound.
volume float The volume.
return SoundInstance

PlaySound() public method

Plays the sound.
public PlaySound ( SOUNDS sound, float volume, bool loop ) : SoundInstance
sound SOUNDS The sound.
volume float The volume.
loop bool if set to true [loop].
return SoundInstance

Terminate() protected method

protected Terminate ( ) : void
return void