SoundBank Class (Microsoft.Xna.Framework.Audio)

Represents a collection of Cues.
System.Object
   Microsoft.Xna.Framework.Audio.SoundBank

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public class SoundBank : IDisposable

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The SoundBank type exposes the following members.

  Platforms Name Description
SoundBank  
Top
  Platforms Name Description
IsDisposed Is true if the SoundBank has been disposed. 
IsInUse Is true if the SoundBank has any live Cues in use. 
Top
  Platforms Name Description
Dispose Disposes the SoundBank. (Implements IDisposable.Dispose().)
Finalize  (Overrides object.Finalize().)
GetCue Returns a pooled Cue object. 
PlayCue(string) Plays a cue. 
PlayCue(string, AudioListener, AudioEmitter) Plays a cue with static 3D positional information. 
Top
  Platforms Name Description
Disposing This event is triggered when the SoundBank is disposed. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web