C# Class MyPolarBear.Audio.SoundManager

Mostrar archivo Open project: sgdc/sgdc-old Class Usage Examples

Public Methods

Method 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 method

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
return void

GetSound() public static method

public static GetSound ( string name ) : SoundEffectInstance
name string
return Microsoft.Xna.Framework.Audio.SoundEffectInstance

PauseAllMusic() public static method

public static PauseAllMusic ( ) : void
return void

PauseMusic() public static method

public static PauseMusic ( string name ) : void
name string
return void

PlayMusic() public static method

public static PlayMusic ( string name ) : void
name string
return void

PlaySound() public static method

public static PlaySound ( string name ) : void
name string
return void

SoundManager() public method

public SoundManager ( ) : System
return System

StopAllMusic() public static method

public static StopAllMusic ( ) : void
return void

StopMusic() public static method

public static StopMusic ( string name ) : void
name string
return void