Cue.Apply3D Method (Microsoft.Xna.Framework.Audio)

Updates the simulated 3D Audio settings calculated between an AudioEmitter and AudioListener.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public void Apply3D(
	AudioListener listener, 
	AudioEmitter emitter

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Audio.AudioListener
The listener to calculate.
Type: Microsoft.Xna.Framework.Audio.AudioEmitter
The emitter to calculate.
This must be called before Play().Calling this method automatically converts the sound to monoaural and sets the speaker mix for any sound played by this cue to a value calculated with the listener's and emitter's positions. Any stereo information in the sound will be discarded.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop