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.Music Class Reference

Wrapper class to control the Cue provided by SoundManager More...

Public Member Functions

 Music (Cue cue)
 Generate an instance of the Sound manager
void Play ()
 Play this cue, as long that this cue isn't already playing
void Pause ()
 Pause the cue, as long as the cue is already playing
void Stop ()
 Completely stop the cue under the authored stop style
void ChangeVolume (float volume)
 Change the volume of the cue NOTE: Only supported by cues set up with this setup (using variable "volume") - http://www.luminance.org/blog/code/2009/07/23/simple-dynamic-music-with-xact

Properties

bool IsPlaying [get]
 Get the playing state for the cue
bool IsPaused [get]
 Get the paused state for the cue
bool IsStopped [get]
 Get the stopped state for the cue

Detailed Description

Wrapper class to control the Cue provided by SoundManager

Constructor & Destructor Documentation

MuScreenManager.Music.Music ( Cue  cue)

Generate an instance of the Sound manager

Parameters
cueCue to play

Member Function Documentation

void MuScreenManager.Music.ChangeVolume ( float  volume)

Change the volume of the cue NOTE: Only supported by cues set up with this setup (using variable "volume") - http://www.luminance.org/blog/code/2009/07/23/simple-dynamic-music-with-xact

Parameters
volumeVolume between 0f and 1f to change the volume to
void MuScreenManager.Music.Pause ( )

Pause the cue, as long as the cue is already playing

void MuScreenManager.Music.Play ( )

Play this cue, as long that this cue isn't already playing

void MuScreenManager.Music.Stop ( )

Completely stop the cue under the authored stop style

Property Documentation

bool MuScreenManager.Music.IsPaused
get

Get the paused state for the cue

bool MuScreenManager.Music.IsPlaying
get

Get the playing state for the cue

bool MuScreenManager.Music.IsStopped
get

Get the stopped state for the cue


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