SoundEffect.CreateInstance Method (Microsoft.Xna.Framework.Audio)
Creates a new SoundEffectInstance for this SoundEffect.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- C#
- VB
- F#
public SoundEffectInstance CreateInstance()
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Return Value
Type: Microsoft.Xna.Framework.Audio.SoundEffectInstanceA new SoundEffectInstance for this SoundEffect.
Creating a SoundEffectInstance before calling SoundEffectInstance.Play() allows you to access advanced playback features, such as volume, pitch, and 3D positioning.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web