MuScreenManager  1.0
MuScreenManager is an XNA class library that provides a screen management system, allowing for the simple integration of menus and other screens into your game.
 All Classes Namespaces Functions Variables Enumerations Properties
MuScreenManager.Audio Class Reference

Official Sound Manager of MuScreenManager! Probably be worthwhile to read over the code so you can know how to set up your XACT project to take full advantage of the manager, or use the provided example project More...

Public Member Functions

 Audio (AudioSettings settings)
 Generate an instance of the Sound manager
void Update ()
 Update the Sound manager
Music GetMusic (string soundBank, string cueName)
 Get a sound cue from a certain sound bank
void PlayMusic (string soundBank, string cueName)
 Play a sound cue. One off, plays till it's done!
void ChangeVolume (string category, float volume)
 Change the volume of a certain category

Detailed Description

Official Sound Manager of MuScreenManager! Probably be worthwhile to read over the code so you can know how to set up your XACT project to take full advantage of the manager, or use the provided example project

Constructor & Destructor Documentation

MuScreenManager.Audio.Audio ( AudioSettings  settings)

Generate an instance of the Sound manager

Parameters
settingsSettings to initialize Sound manager with

Member Function Documentation

void MuScreenManager.Audio.ChangeVolume ( string  category,
float  volume 
)

Change the volume of a certain category

Parameters
categoryCategory to change the volume to
volumeVolume between 0f and 1f to change the volume to
Music MuScreenManager.Audio.GetMusic ( string  soundBank,
string  cueName 
)

Get a sound cue from a certain sound bank

Parameters
soundBankSound bank to get the audio cue from
cueNameCue to get from said sound bank
Returns
Cue in Music form
void MuScreenManager.Audio.PlayMusic ( string  soundBank,
string  cueName 
)

Play a sound cue. One off, plays till it's done!

Parameters
soundBankSound bank to get the audio cue from
cueNameCue to get from said sound bank
void MuScreenManager.Audio.Update ( )

Update the Sound manager


The documentation for this class was generated from the following file: