C# Class WaveOculusDemoProject.Audio.SoundManager

Inheritance: Component
Afficher le fichier Open project: WaveEngine/Samples Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Initialize ( ) : void

Initialize sound manager

Private Methods

Méthode Description
LoadSounds ( ) : void

Load all sound used in this demo

Method Details

GetSoundPath() public méthode

Gets sound path by its sound type
public GetSoundPath ( SoundType sound ) : string
sound SoundType
Résultat string

Initialize() protected méthode

Initialize sound manager
protected Initialize ( ) : void
Résultat void

Play() public méthode

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
Résultat SoundInstance

SoundManager() public méthode

public SoundManager ( ) : System
Résultat System