Important: The information in this document is obsolete and should not be used for new development.
SRGetReference
You can use theSRGetReferencefunction to obtain an extra reference to a speech object.
pascal OSErr SRGetReference ( SRSpeechObject srObject, SRSpeechObject *newObjectRef);
srObject- A speech object.
newObjectRef- On exit, a new reference to the specified speech object.
DESCRIPTION
TheSRGetReferencefunction returns, in thenewObjectRefparameter, a new reference to the speech object specified by thesrObjectparameter. The original object reference (contained insrObject) and the new reference (returned innewObjectRef) may have different values. Accordingly, you cannot simply compare two object references to determine whether they are references to the same speech object.SPECIAL CONSIDERATIONS
SRGetReferenceincreases the reference count of the specified speech object. You should call theSRReleaseObjectfunction to release the object reference returned bySRGetReferencewhen you're done using it.