Microsoft.Xna.Framework.Audio Namespace

Contains low-level application programming interface (API) methods that can load and manipulate XACT-created project and content files to play audio.

Classes

Name Description
Public Class AudioEmitter Represents a 3D audio emitter. This object, used in combination with an AudioListener and the Cue.Apply3D method, can simulate 3D audio effects for a given Cue.
Public Class AudioEngine Represents the audio engine. Applications use the methods of the audio engine to instantiate and manipulate core audio objects.
Public Class AudioListener Represents a 3D audio listener. This object, used in combination with an AudioEmitter and the Cue.Apply3D method, can simulate 3D audio effects for a given Cue.
Public Class Cue Defines methods for managing the playback of sounds.
Public Class InstancePlayLimitException Exception thrown when a sound or cue has reached an instance limit and can not be played.
Public Class NoAudioHardwareException The exception that is thrown when no audio hardware is present, or when audio hardware is installed but device drivers for the audio hardware are not present or enabled.
Public Class SoundBank Represents a sound bank, which is a collection of cues.
Public Class WaveBank Represents a wave bank, which is a collection of wave files.

Structures

Name Description
Public Structure AudioCategory Represents a particular category of sounds.
Public Structure RendererDetail Represents an audio renderer, which is a device that can render audio to a user.

Enumerations

Name Description
Public Enumeration AudioStopOptions Controls how Cue objects should stop when Stop is called.

See Also

Tasks

How to: Add a Sound File to Your Game Using XACT
How to: Play a Sound
How to: Stop or Pause a Sound
How to: Change Sound Volume Levels

Concepts

Audio Overview