Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
DrawSprocket Functions / Drawing and Double Buffering


DSpContext_IsBusy

You can use the DSpContext_IsBusy function to find out whether a back buffer is available.

OSStatus DSpContext_IsBusy (
DSpContextReference inContext,
Boolean *outBusyFlag);
inContext
A reference to the context for which you want to determine if a back buffer is available.
outBusyFlag
On exit, contains true if no back buffer is available, false if a back buffer is available.
function result
A result code.
DESCRIPTION
The DSpContext_IsBusy function returns true in the outBusyFlag flag if there are no back buffers available for the context specified in the inContext parameter. This is useful if you would like to know if a call to DSpContext_GetBackBuffer will block.

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996