XNA Creators Club Online

détails de l’échantillon

3D Audio
Échantillon
envoyé
26/04/2007

Description:

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

Sample Overview

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

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

téléchargements
Framework

GS 2.0

Version Vertex Shader

VS 1.1

Version Pixel Shader

PS 1.1

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