Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
DrawSprocket Functions / Manipulating a Context


DSpContext_GetState

Use the DSpContext_GetState function to find out the current play state of a context.

OSStatus DSpContext_GetState (
DSpContextReference inContext,
DSpContextState *outState);
inContext
A reference to the context whose play state you want to get.
outState
On exit, the play state of the context. Valid return values
are kDSpContextState_Active, kDSpContextState_Paused, and kDSpContextState_Inactive.
function result
A result code.
DESCRIPTION
The function takes, in the inContext parameter, a reference to a context and returns, in the outState parameter, the current play state of the context. See "Play State" (page 2-25) for information on interpreting the value returned in the outState parameter.

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996