Previous Book Contents Book Index Next

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


DSpContext_GetMonitorFrequency

You can use the DSpContext_GetMonitorFrequency function to get the frequency for the display associated with a context.

OSStatus DSpContext_GetMonitorFrequency (
DSpContextReference inContext,
Fixed *outFrequency);
inContext
A reference to a context for which you want to get the display frequency.
outFrequency
On exit, the display frequency.
function result
A result code.
DESCRIPTION
The DSpContext_GetMonitorFrequency function takes a reference to a context in the inContext parameter and returns the frequency of the display associated with that context in the outFrequency parameter. The context must have been active for a reasonable amount of time (at least two seconds) in order to receive a correct value, because the value returned is calculated by timing the frame rate of the context in its active state.

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996