Audio

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 a simple SoundEffect class for audio playback that doesn't require XACT.
Attenuation and Doppler Pitch Shifting Overview
Provides an overview of attenuation and Doppler pitch shifting.
How To: Play a Sound
Demonstrates how to play a sound.
How To: Play a Song
Demonstrates how to play a song from a user's media library.
How To: Loop a Sound
Demonstrates how to loop a sound.
How To: Change the Pitch or Volume of a Sound
Demonstrates how to change pitch and volume of a playing sound.
How To: Apply Basic 3D Positional Effects to a SoundEffect
Demonstrates how to apply 3D positioning effects to SoundEffects.
How To: Add a Sound File to Your Game Using XACT
Demonstrates how to add wave (.WAV) files to an XACT project that can be built and interpreted by an XNA Game Studio game to play audio.
How To: Play a Sound Using XACT
Demonstrates how to initialize the audio engine, load sound and wave banks, and play a sound by using a Cue object.
How To: Specify Background Music Using XACT
Demonstrates how to specify sound (.WAV) files as background music.
How To: Stop or Pause a Sound Using XACT
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).
How To: Change Sound Volume Levels Using XACT
Demonstrates how to initialize the audio engine and how to use categories to change the playback volume of a group of sounds.
How To: Stream a Sound Using XACT
Demonstrates how to create and use a streaming wave bank.
How To: Apply Basic 3D Positional Effects to a Cue
Demonstrates how to apply 3D positioning effects to cues.
How To: Apply Attenuation and Doppler 3D Audio Effects
Demonstrates how to apply attenuation and Doppler 3D positioning effects in code.

Community Additions

ADD
Show: