C# Class WaveFrogger.Services.AudioService

Audio Service class.
Inheritance: UpdatableService
Afficher le fichier Open project: WaveEngine/QuickStarters Class Usage Examples

Méthodes publiques

Méthode Description
LoadAllSounds ( ) : void

Loads all sounds.

Play ( Audio sound, bool loop = false ) : void

Plays the sound.

Play ( Audio music, float volume = MUSIC_VOLUME ) : void

Plays the specified music.

PlayRandom ( ) : void
Update ( System.TimeSpan gameTime ) : void

Updates the specified game time.

Méthodes protégées

Méthode Description
Initialize ( ) : void

Initializes a new instance of the SoundsManager class.

Terminate ( ) : void

Terminates this instance.

Private Methods

Méthode Description
GetSoundOrMusicPath ( Enum audio ) : string

Resolve paths

InternalPlaySound ( Enum sound, bool loop ) : SoundInstance

Internals the play sound.

Load ( Enum sound, SoundInfo &array ) : void

Loads the sound.

SearchMusicAndSounds ( Type contentType ) : void

Method Details

Initialize() protected méthode

Initializes a new instance of the SoundsManager class.
protected Initialize ( ) : void
Résultat void

LoadAllSounds() public méthode

Loads all sounds.
public LoadAllSounds ( ) : void
Résultat void

Play() public méthode

Plays the sound.
public Play ( Audio sound, bool loop = false ) : void
sound Audio The sound.
loop bool if set to true [loop].
Résultat void

Play() public méthode

Plays the specified music.
public Play ( Audio music, float volume = MUSIC_VOLUME ) : void
music Audio The music.
volume float
Résultat void

PlayRandom() public méthode

public PlayRandom ( ) : void
Résultat void

Terminate() protected méthode

Terminates this instance.
protected Terminate ( ) : void
Résultat void

Update() public méthode

Updates the specified game time.
public Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The game time.
Résultat void