Метод | Описание | |
---|---|---|
FadeIn ( System.TimeSpan fadeDuration ) : void | ||
FadeOut ( System.TimeSpan fadeDuration ) : void | ||
Load ( String filename ) : void | ||
Pause ( ) : void | ||
Play ( float volume, bool loopPlayback ) : void | ||
PlayFadeIn ( float volume, System.TimeSpan fadeDuration, bool loopPlayback ) : void | ||
Resume ( ) : void | ||
SoundClip ( Microsoft.Xna.Framework.Content.ContentManager Content, String filename ) : System | ||
SoundClip ( Microsoft.Xna.Framework.Content.ContentManager Content, short index, String filename ) : System | ||
Stop ( ) : void | ||
Update ( ) : void |
Must be updated in game loop, required for real time calculations in our case it's only used to fade in and out songs failure to call update results in songs playing at constant volume.
|
public FadeIn ( System.TimeSpan fadeDuration ) : void | ||
fadeDuration | System.TimeSpan | |
Результат | void |
public FadeOut ( System.TimeSpan fadeDuration ) : void | ||
fadeDuration | System.TimeSpan | |
Результат | void |
public Play ( float volume, bool loopPlayback ) : void | ||
volume | float | |
loopPlayback | bool | |
Результат | void |
public PlayFadeIn ( float volume, System.TimeSpan fadeDuration, bool loopPlayback ) : void | ||
volume | float | |
fadeDuration | System.TimeSpan | |
loopPlayback | bool | |
Результат | void |
public SoundClip ( Microsoft.Xna.Framework.Content.ContentManager Content, String filename ) : System | ||
Content | Microsoft.Xna.Framework.Content.ContentManager | |
filename | String | |
Результат | System |
public SoundClip ( Microsoft.Xna.Framework.Content.ContentManager Content, short index, String filename ) : System | ||
Content | Microsoft.Xna.Framework.Content.ContentManager | |
index | short | |
filename | String | |
Результат | System |