Important: The information in this document is obsolete and should not be used for new development.
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 thekSRCallBackParam
property of the current recognizer. The value of thekSRCallBackParam
property is the address of a callback routine parameter structure, defined by theSRCallBackParam
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 inSpeechRecognition.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.