C# Class MyPolarBear.Audio.SoundManager

Afficher le fichier Open project: sgdc/sgdc-old Class Usage Examples

Méthodes publiques

Méthode Description
AddMusic ( string name, SoundEffect song, bool isLooped, float volume = 0.1f ) : void
GetSound ( string name ) : SoundEffectInstance
PauseAllMusic ( ) : void
PauseMusic ( string name ) : void
PlayMusic ( string name ) : void
PlaySound ( string name ) : void
SoundManager ( ) : System
StopAllMusic ( ) : void
StopMusic ( string name ) : void

Method Details

AddMusic() public static méthode

public static AddMusic ( string name, SoundEffect song, bool isLooped, float volume = 0.1f ) : void
name string
song Microsoft.Xna.Framework.Audio.SoundEffect
isLooped bool
volume float
Résultat void

GetSound() public static méthode

public static GetSound ( string name ) : SoundEffectInstance
name string
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance

PauseAllMusic() public static méthode

public static PauseAllMusic ( ) : void
Résultat void

PauseMusic() public static méthode

public static PauseMusic ( string name ) : void
name string
Résultat void

PlayMusic() public static méthode

public static PlayMusic ( string name ) : void
name string
Résultat void

PlaySound() public static méthode

public static PlaySound ( string name ) : void
name string
Résultat void

SoundManager() public méthode

public SoundManager ( ) : System
Résultat System

StopAllMusic() public static méthode

public static StopAllMusic ( ) : void
Résultat void

StopMusic() public static méthode

public static StopMusic ( string name ) : void
name string
Résultat void