Property | Type | Description | |
---|---|---|---|
GlobalVariables | |||
SoundListener |
Method | Description | |
---|---|---|
AddSoundBank ( string soundBankFile ) : void |
Adds a sound bank
|
|
AddWaveBank ( string waveBankFile ) : void |
Adds a wave bank
|
|
GetPositionedSound ( String soundName ) : |
Gets a positioned sound
|
|
GetPositionedSound ( String soundName, string soundBankFile ) : |
Gets a positioned sound
|
|
GetSound ( String soundName ) : Sound |
Gets a sound
|
|
GetSound ( String soundName, string soundBankFile ) : Sound |
Gets a sound
|
|
HasSoundBank ( string soundBankFile ) : bool |
Whether or not the given sound bank file has been loaded
|
|
HasWaveBank ( string soundBankFile ) : bool |
Whether or not the given wave bank file has been loaded
|
|
Initialize ( String settingsFile, String waveBankFile, String soundBankFile ) : void |
Initializes the audio manager with an XACT audio project
|
|
IsSoundEffectPlaying ( |
||
Play ( |
||
Play ( |
Plays the argument sound effect.
|
|
PlayIfNotPlaying ( |
||
PlaySong ( ) : void |
Plays the current song. PlaySong with an argument must be called before this can be called. This can be used to resume music when the game is unpaused or if audio options are being turned on/off
|
|
PlaySong ( Microsoft.Xna.Framework.Media.Song toPlay, bool forceRestart, bool isSongGlobalContent ) : void |
Plays the argument song, optionally restarting it if it is already playing.
|
|
PlaySongThenResumeCurrent ( Microsoft.Xna.Framework.Media.Song toPlay, bool songUsesGlobalContent ) : void | ||
PlaySound ( String soundName ) : |
Plays a sound immediately
|
|
PlaySound ( String soundName, string soundBankFile ) : |
Plays a sound immediately
|
|
RemovePositionedSound ( |
Removes the specified sound from the audio manager Warning: The sound will stop being positioned when removed
|
|
RemoveSoundBank ( string soundBankFile ) : void |
Removes a sound bank
|
|
RemoveWaveBank ( string waveBankFile ) : void |
Removes a wave bank
|
|
StopAndDisposeCurrentSongIfNameDiffers ( string nameToCompareAgainst ) : bool | ||
StopSong ( ) : void | ||
Update ( ) : void |
Method | Description | |
---|---|---|
AudioManager ( ) : System | ||
GetCue ( String soundName, string soundBankFile ) : |
||
HandleMediaStateChanged ( object sender, |
||
OnSuspending ( object sender, |
||
OnUnsuspending ( object sender, |
||
UpdateDependencies ( ) : void | ||
UserPermissionCallback ( IAsyncResult r ) : void |
public static AddSoundBank ( string soundBankFile ) : void | ||
soundBankFile | string | The sound bank to add |
return | void |
public static AddWaveBank ( string waveBankFile ) : void | ||
waveBankFile | string | The wave bank to add |
return | void |
public static GetPositionedSound ( String soundName ) : |
||
soundName | String | The name of the sound in the XACT project |
return |
public static GetPositionedSound ( String soundName, string soundBankFile ) : |
||
soundName | String | The name of the sound in the XACT project |
soundBankFile | string | The name of the sound bank to retrieve the sound from |
return |
public static GetSound ( String soundName ) : Sound | ||
soundName | String | The name of the sound in the XACT project |
return | Sound |
public static GetSound ( String soundName, string soundBankFile ) : Sound | ||
soundName | String | The name of the sound in the XACT project |
soundBankFile | string | The name of the sound bank to retrieve the sound from |
return | Sound |
public static HasSoundBank ( string soundBankFile ) : bool | ||
soundBankFile | string | The sound bank to check |
return | bool |
public static HasWaveBank ( string soundBankFile ) : bool | ||
soundBankFile | string | The wave bank to check |
return | bool |
public static Initialize ( String settingsFile, String waveBankFile, String soundBankFile ) : void | ||
settingsFile | String | The settings file for the audio project (xgs) |
waveBankFile | String | The wave bank file for the audio project (xwb) |
soundBankFile | String | The sound bank file for the audio project (xsb) |
return | void |
public static IsSoundEffectPlaying ( |
||
soundEffect | ||
return | bool |
public static Play ( |
||
soundEffect | ||
return | void |
public static Play ( |
||
soundEffect | The sound effect to play | |
volume | float | Volume, ranging from 0.0f (silence) to 1.0f (full volume). 1.0f is full volume |
return | void |
public static PlayIfNotPlaying ( |
||
soundEffect | ||
return | void |
public static PlaySong ( Microsoft.Xna.Framework.Media.Song toPlay, bool forceRestart, bool isSongGlobalContent ) : void | ||
toPlay | Microsoft.Xna.Framework.Media.Song | The song to play. |
forceRestart | bool | Whether the song should be restarted. If the toPlay parameter differs from the currently-playing song then it will /// restart regardless of the forceRestart value. This value only matters when the currently-playing song is passed. |
isSongGlobalContent | bool | Whether the song uses a Global content manager. This is important if StopAndDisposeCurrentSongIfNameDiffers is called. /// StopAndDisposeCurrentSongIfNameDiffers is called by Glue, so the isSongGlobalContent param matters even if your code is not directly calling this function. |
return | void |
public static PlaySongThenResumeCurrent ( Microsoft.Xna.Framework.Media.Song toPlay, bool songUsesGlobalContent ) : void | ||
toPlay | Microsoft.Xna.Framework.Media.Song | |
songUsesGlobalContent | bool | |
return | void |
public static PlaySound ( String soundName ) : |
||
soundName | String | The name of the sound in the XACT project |
return |
public static PlaySound ( String soundName, string soundBankFile ) : |
||
soundName | String | The name of the sound in the XACT project |
soundBankFile | string | The name of the sound bank to retrieve the sound from |
return |
public static RemovePositionedSound ( |
||
sound | The sound to remove | |
return | void |
public static RemoveSoundBank ( string soundBankFile ) : void | ||
soundBankFile | string | The sound bank to remove |
return | void |
public static RemoveWaveBank ( string waveBankFile ) : void | ||
waveBankFile | string | The wave bank to remove |
return | void |
public static StopAndDisposeCurrentSongIfNameDiffers ( string nameToCompareAgainst ) : bool | ||
nameToCompareAgainst | string | |
return | bool |
public static SoundGlobalVariableCollection,FlatRedBall.Audio GlobalVariables | ||
return |