Important: The information in this document is obsolete and should not be used for new development.
SRGetReference
You can use theSRGetReference
function 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
TheSRGetReference
function returns, in thenewObjectRef
parameter, a new reference to the speech object specified by thesrObject
parameter. 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
SRGetReference
increases the reference count of the specified speech object. You should call theSRReleaseObject
function to release the object reference returned bySRGetReference
when you're done using it.