![]() |
SRNewLanguageObjectFromDataFile |
||||
Header: | SpeechRecognition.h | Carbon status: | Supported | |
Reads a language object from a data file.
OSErr SRNewLanguageObjectFromDataFile ( SRRecognitionSystem system, SRLanguageObject *languageObject, SInt16 fRefNum );
A recognition system.
On return, a reference to a new language object whose description is stored in the open data file that has the file reference number specified by the fRefNum parameter.
A file reference number of an open data file.
A result code.
SRNewLanguageObjectFromDataFile reads data beginning at the current file mark.
If the language object is successfully created and initialized, the file mark is left at the byte immediately following the language object description. Otherwise, if the language object data is not appropriately formatted, SRNewLanguageObjectFromDataFile returns the result code kSRCantReadLanguageObject as its function result and the file mark is not moved.
You should call the SRReleaseObject function to release the language object reference returned by SRNewLanguageObjectFromDataFile when you are done using it.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)