Previous Book Contents Book Index Next

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


DSpContext_SetState

You can use the DSpContext_SetState function to set the play state of a context.

OSStatus DSpContext_SetState (
DSpContextReference inContext,
DSpContextState inState);
inContext
A reference to the context whose play state you want to set.
inState
The state to set the context to. Valid input values
for this parameter are kDSpContextState_Active, kDSpContextState_Paused, and kDSpContextState_Inactive.
function result
A result code.
DESCRIPTION
The DSpContext_SetState function sets the play state of the context specified in the inContext parameter to the state specified in the inState parameter. See "Play State" (page 2-25) for more information on valid values for the inPlayState parameter. In summary, you can make these choices:

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996