(Page 11 of 41 in this chapter) Version
vceErase
Description
- Removes data at the current position in the current message.
Prototype
- DWORD vceErase ( CTAHD ctahd,
unsigned msec,
unsigned *actual)
- ctahd Handle returned by ctaCreateContext.
- msec Amount of data to erase, in milliseconds.
- actual Pointer to returned number of milliseconds erased.
Return Values
Events
Details
- This function removes the specified number of milliseconds of data at the current position in the current message in the context specified by ctahd. It returns the number of milliseconds deleted in actual, unless actual is NULL.
- The current position will be unchanged. The current message size will be reduced by the amount deleted.
- You cannot erase while play or record is active.
- If you attempt to erase beyond the end of the current message, SUCCESS will be returned and the current position will become the end of the message.
- Erasing data to anywhere except the end of a message is allowed only on file types that fully support editing (currently only VOX files).
See Also
- vceEraseMessage
Example
/* Trim specified number of seconds off end of the current message */
void myTrim (CTAHD ctahd, unsigned seconds)
{
unsigned msec = seconds*1000 ;
vceSetPosition (ctahd, msec, VCE_SEEK_END, NULL) ;
vceErase (ctahd, msec, NULL);
}
(Page 11 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.