(Page 4 of 40 in this chapter)


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 an open 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.2.3, Voice Handles 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 40 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.