SoundBank.GetCue Method (Microsoft.Xna.Framework.Audio)

Returns a pooled Cue object.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public Cue GetCue(
	string name
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

name
Type: System.String
Friendly name of the cue to get.

Return Value

Type: Microsoft.Xna.Framework.Audio.Cue
a unique Cue object from a pool.
Cue instances are unique, even when sharing the same name. This allows multiple instances to simultaneously play.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web