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éthode | Description | |
---|---|---|
Initialize ( ) : void |
Initializes a new instance of the SoundsManager class.
|
|
Terminate ( ) : void |
Terminates this instance.
|
Méthode | Description | |
---|---|---|
GetSoundOrMusicPath ( |
Resolve paths
|
|
InternalPlaySound ( |
Internals the play sound.
|
|
Load ( |
Loads the sound.
|
|
SearchMusicAndSounds ( |
public Play ( Audio sound, bool loop = false ) : void | ||
sound | Audio | The sound. |
loop | bool | if set to |
Résultat | void |
public Play ( Audio music, float volume = MUSIC_VOLUME ) : void | ||
music | Audio | The music. |
volume | float | |
Résultat | void |
public Update ( System.TimeSpan gameTime ) : void | ||
gameTime | System.TimeSpan | The game time. |
Résultat | void |