Xbox LIVE Indie Games

code sample details

3D Audio

Submitted
4/26/2007
Code Sample

Description:

This sample shows how to position sounds in 3D space by implementing panning, Doppler, and distance attenuation effects.

Sample Overview

3D audio is a bit more complicated than playing regular cues. It's not good enough to just "fire and forget" a 3D sound. As the listener or the entity that created a sound moves around the world, you must update the 3D audio settings to reflect these changes.

This sample demonstrates how to overcome this problem by implementing an AudioManager component that keeps track of cue instances and automatically updates their 3D settings.



All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

downloads

Framework

GS 4.0

find education content
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG