Свойство | Тип | Описание | |
---|---|---|---|
GlobalVariables | |||
SoundListener |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 |
Результат | void |
public static AddWaveBank ( string waveBankFile ) : void | ||
waveBankFile | string | The wave bank to add |
Результат | void |
public static GetPositionedSound ( String soundName ) : |
||
soundName | String | The name of the sound in the XACT project |
Результат |
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 |
Результат |
public static GetSound ( String soundName ) : Sound | ||
soundName | String | The name of the sound in the XACT project |
Результат | 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 |
Результат | Sound |
public static HasSoundBank ( string soundBankFile ) : bool | ||
soundBankFile | string | The sound bank to check |
Результат | bool |
public static HasWaveBank ( string soundBankFile ) : bool | ||
soundBankFile | string | The wave bank to check |
Результат | 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) |
Результат | void |
public static IsSoundEffectPlaying ( |
||
soundEffect | ||
Результат | bool |
public static Play ( |
||
soundEffect | ||
Результат | 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 |
Результат | void |
public static PlayIfNotPlaying ( |
||
soundEffect | ||
Результат | 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. |
Результат | void |
public static PlaySongThenResumeCurrent ( Microsoft.Xna.Framework.Media.Song toPlay, bool songUsesGlobalContent ) : void | ||
toPlay | Microsoft.Xna.Framework.Media.Song | |
songUsesGlobalContent | bool | |
Результат | void |
public static PlaySound ( String soundName ) : |
||
soundName | String | The name of the sound in the XACT project |
Результат |
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 |
Результат |
public static RemovePositionedSound ( |
||
sound | The sound to remove | |
Результат | void |
public static RemoveSoundBank ( string soundBankFile ) : void | ||
soundBankFile | string | The sound bank to remove |
Результат | void |
public static RemoveWaveBank ( string waveBankFile ) : void | ||
waveBankFile | string | The wave bank to remove |
Результат | void |
public static StopAndDisposeCurrentSongIfNameDiffers ( string nameToCompareAgainst ) : bool | ||
nameToCompareAgainst | string | |
Результат | bool |
public static SoundGlobalVariableCollection,FlatRedBall.Audio GlobalVariables | ||
Результат |