SoundBank.PlayCue Method (Microsoft.Xna.Framework.Audio)
Plays a cue with static 3D positional information.
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 void PlayCue( string name, AudioListener listener, AudioEmitter emitter )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- name
-
Type: System.String
The name of the cue to play.
- listener
-
Type: Microsoft.Xna.Framework.Audio.AudioListener
The listener state.
- emitter
-
Type: Microsoft.Xna.Framework.Audio.AudioEmitter
The cue emitter state.
Commonly used for short lived effects. To dynamically change the 3D
positional information on a cue over time use GetCue(string) and Apply3D(AudioListener, AudioEmitter).
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web