Bagikan melalui


Cue Members

The following tables list the members exposed by the Cue type.

Public Properties

Name Description
Public Property IsCreated Returns whether the cue has been created.
Public Property IsDisposed Gets a value indicating whether the object has been disposed.
Public Property IsPaused Returns whether the cue is currently paused.
Public Property IsPlaying Returns whether the cue is playing.
Public Property IsPrepared Returns whether the cue is prepared to play.
Public Property IsPreparing Returns whether the cue is preparing to play.
Public Property IsStopped Returns whether the cue is currently stopped.
Public Property IsStopping Returns whether the cue is stopping playback.
Public Property Name Returns the friendly name of the cue.

Public Methods

Name Description
Public Method Apply3D Calculates the 3D audio values between an AudioEmitter and an AudioListener object, and applies the resulting values to this Cue.
Public Method Dispose Immediately releases the unmanaged resources used by this object.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method GetVariable Gets a cue-instance variable value based on its friendly name.
Public Method Pause Pauses playback.
Public Method Play Requests playback of a prepared or preparing Cue.
Public Method Resume Resumes playback of a paused Cue.
Public Method SetVariable Sets the value of a cue-instance variable based on its friendly name.
Public Method Stop Stops playback of a Cue.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

Public Events

Name Description
Public Event Disposing Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime (CLR).

See Also

Tasks

Playing Sounds from an XACT Project
Pausing a Sound (XACT)

Concepts

Sounds Overview

Reference

Cue Class
Microsoft.Xna.Framework.Audio Namespace