Retrieves the current operating state of a cue.
HRESULT GetState( DWORD *pdwState );
Value | Description |
---|---|
XACT_CUESTATE_CREATED | Created, but nothing else |
XACT_CUESTATE_PREPARING | Preparing to play |
XACT_CUESTATE_PREPARED | Prepared, but not yet played |
XACT_CUESTATE_PLAYING | Playing, but can be paused |
XACT_CUESTATE_STOPPING | Stopping |
XACT_CUESTATE_STOPPED | Stopped |
XACT_CUESTATE_PAUSED | Paused |
Note States represented by these flags are not necessarily mutually exclusive. Therefore, test states using the & (and) operation rather than the == (equals) operation.
Returns S_OK if successful, an error code otherwise.
This function informs the caller what activity the cue is performing at the moment the call is made. The state returned from GetState indicates only the current condition.
Only XACT_CUESTATE_PAUSED is used in combination with other state flags. In other words, the GetState might return a state value with XACT_CUESTATE_PREPARING set or XACT_CUESTATE_PLAYING set, but never with both (since both conditions cannot both be true at the same time). However, GetState may return a state value with both XACT_CUESTATE_PLAYING and XACT_CUESTATE_PAUSED flags set, to signify that the cue is paused while playing.
For more information on using this method, see Managing XACT Resources and Notifications.
Header: Declared in Xact.h.