SoundEffectInstance.Pan Property (Microsoft.Xna.Framework.Audio)

Gets or sets the pan, or speaker balance..

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public float Pan { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Single
Pan value ranging from -1.0 (left speaker) to 0.0 (centered), 1.0 (right speaker). Values outside of this range will throw an exception.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop