(Page 4 of 41 in this chapter) Version
vceClose
Description
- Closes a voice object.
Prototype
- DWORD vceClose ( VCEHD vh)
- vh Handle of an open voice object.
Return Values
Events
Details
- This function closes a voice file or a memory block.
- If the object is a memory block, the memory is not freed. If the object was created with vceAssignHandle, the application must close the associated file descriptor.
Note: If play or record is currently active on a message in the voice object, the play or record function is terminated. The reason in the DONE event will be CTA_REASON_STOPPED.
- Refer to Section 2.1, Obtaining a Voice Handle for more information.
See Also
- vceAssignHandle
, vceCreateFile, vceOpenFile, vceOpenMemory
Example
/* Close an open memory block and free the memory */
void myclosememory (VCEHD vh, BYTE *address)
{
free (address); /* OK to free first if not playing.*/
vceClose (vh);
}
(Page 4 of 41 in this chapter) Version
Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2001, Natural MicroSystems, Inc. All rights
reserved.