Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Speech Recognition Manager /
Chapter 1 - Speech Recognition Manager / Speech Recognition Manager Reference
Data Structures


Callback Routine Parameter Structure

If you want to receive recognition notifications using a speech recognition callback routine instead of an Apple event handler, you must change the value of the kSRCallBackParam property of the current recognizer. The value of the kSRCallBackParam property is the address of a callback routine parameter structure, defined by the SRCallBackParam data type.

struct SRCallBackParam {
   SRCallBackUPP              callBack;
   long                       refcon;
};
typedef struct SRCallBackParam SRCallBackParam;
Field Description
callBack
A routine descriptor for a speech recognition callback routine. You can use the macro NewSRCallBackProc (defined in SpeechRecognition.h) to create this routine descriptor.
refcon
An application-defined reference constant. This value is passed to your callback routine in the refcon field of a speech recognition callback structure. You can pass any 4-byte value you wish.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997