C# Class WaveOculusDemoProject.Audio.SoundManager

Inheritance: Component
Show file Open project: WaveEngine/Samples Class Usage Examples

Public Methods

Method Description
GetSoundPath ( SoundType sound ) : string

Gets sound path by its sound type

Play ( SoundType sound, bool loop = false ) : SoundInstance

Play a sound and return its instance

SoundManager ( ) : System

Protected Methods

Method Description
Initialize ( ) : void

Initialize sound manager

Private Methods

Method Description
LoadSounds ( ) : void

Load all sound used in this demo

Method Details

GetSoundPath() public method

Gets sound path by its sound type
public GetSoundPath ( SoundType sound ) : string
sound SoundType
return string

Initialize() protected method

Initialize sound manager
protected Initialize ( ) : void
return void

Play() public method

Play a sound and return its instance
public Play ( SoundType sound, bool loop = false ) : SoundInstance
sound SoundType The sound type
loop bool Indicate if the sound must be looped
return SoundInstance

SoundManager() public method

public SoundManager ( ) : System
return System