C# Class LDEngine.AudioController

Exibir arquivo Open project: GarethIW/LDEngine

Public Methods

Method Description
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
PlayMusic ( string track ) : void
PlaySFX ( string name ) : void
PlaySFX ( string name, float pitch ) : void
PlaySFX ( string name, float minpitch, float maxpitch ) : void
PlaySFX ( string name, float volume, float pitch, float pan ) : void
StopMusic ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
PlaySFX ( string name, float volume, float minpitch, float maxpitch, Camera gameCamera, Vector2 position ) : void

Method Details

LoadContent() public static method

public static LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

PlayMusic() public static method

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

PlaySFX() public static method

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

PlaySFX() public static method

public static PlaySFX ( string name, float pitch ) : void
name string
pitch float
return void

PlaySFX() public static method

public static PlaySFX ( string name, float minpitch, float maxpitch ) : void
name string
minpitch float
maxpitch float
return void

PlaySFX() public static method

public static PlaySFX ( string name, float volume, float pitch, float pan ) : void
name string
volume float
pitch float
pan float
return void

StopMusic() public static method

public static StopMusic ( ) : void
return void

Update() public static method

public static Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void