C# Class PantheonPrototype.AudioManager

Exibir arquivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Public Properties

Property Type Description
backgroundMusicCategory Microsoft.Xna.Framework.Audio.AudioCategory
engine Microsoft.Xna.Framework.Audio.AudioEngine
gunshotCategory Microsoft.Xna.Framework.Audio.AudioCategory
sfxCue Microsoft.Xna.Framework.Audio.Cue
soundEffectCategory Microsoft.Xna.Framework.Audio.AudioCategory
sounds Microsoft.Xna.Framework.Audio.SoundBank
waves Microsoft.Xna.Framework.Audio.WaveBank

Public Methods

Method Description
AudioManager ( ) : System
playBackgroundMusic ( string currentLevel ) : void

This will basically stop any background music that is playing, then will select the new sound file based on the name of the current level

playFirstBackgroundMusic ( Cue backgroundCue ) : void

This method will play the first set of music for the game

playSoundEffect ( string cueName ) : void

This will play sound effects.. YAY!!! (based on the string cueName)

Method Details

AudioManager() public method

public AudioManager ( ) : System
return System

playBackgroundMusic() public method

This will basically stop any background music that is playing, then will select the new sound file based on the name of the current level
public playBackgroundMusic ( string currentLevel ) : void
currentLevel string passed from Level (levelNum)
return void

playFirstBackgroundMusic() public method

This method will play the first set of music for the game
public playFirstBackgroundMusic ( Cue backgroundCue ) : void
backgroundCue Microsoft.Xna.Framework.Audio.Cue created cue that is attributed to specific sound
return void

playSoundEffect() public method

This will play sound effects.. YAY!!! (based on the string cueName)
public playSoundEffect ( string cueName ) : void
cueName string the name of the cue that the XACT file attributes to the sound file
return void

Property Details

backgroundMusicCategory public_oe property

public AudioCategory,Microsoft.Xna.Framework.Audio backgroundMusicCategory
return Microsoft.Xna.Framework.Audio.AudioCategory

engine public_oe property

public AudioEngine,Microsoft.Xna.Framework.Audio engine
return Microsoft.Xna.Framework.Audio.AudioEngine

gunshotCategory public_oe property

public AudioCategory,Microsoft.Xna.Framework.Audio gunshotCategory
return Microsoft.Xna.Framework.Audio.AudioCategory

sfxCue public_oe property

public Cue,Microsoft.Xna.Framework.Audio sfxCue
return Microsoft.Xna.Framework.Audio.Cue

soundEffectCategory public_oe property

public AudioCategory,Microsoft.Xna.Framework.Audio soundEffectCategory
return Microsoft.Xna.Framework.Audio.AudioCategory

sounds public_oe property

public SoundBank,Microsoft.Xna.Framework.Audio sounds
return Microsoft.Xna.Framework.Audio.SoundBank

waves public_oe property

public WaveBank,Microsoft.Xna.Framework.Audio waves
return Microsoft.Xna.Framework.Audio.WaveBank