Export (0) Print
Expand All

Audio

The XNA Framework Microsoft.Xna.Framework.Audio namespace provides classes and methods for playing audio files.

In This Section

Audio Overview
The XNA Framework provides audio playback through the Microsoft Cross-Platform Audio Creation Tool (XACT) and its associated audio engine.
How to: Add a Sound File to Your Game Using XACT
This example demonstrates how to add wave (.WAV) files into an XACT project that can be built and interpreted by an XNA Game Studio Express game to play audio.
How to: Stop or Pause a Sound
This example demonstrates how to initialize the audio engine, load a sound bank and wave bank, and play, pause, resume, or stop a sound (called a cue). This example builds off a simpler example, How to: Play a Sound.
How to: Change Sound Volume Levels
This example demonstrates how to initialize the audio engine and change the playback volume of a group of sounds using categories.
How to: Apply Basic 3D Positional Effects to a Cue
This example demonstrates how to apply 3D positioning effects to cues.
How to: Apply Attenuation and Doppler 3D Audio Effects
This example demonstrates how to use the Microsoft Cross-Platform Audio Creation Tool (XACT) to apply attenuation and doppler 3D positioning effects to sounds.
Show:
© 2014 Microsoft