The delete command deletes a data segment from a file. Digital-video and waveform-audio devices recognize this command.
wsprintf(lpstrCommand, "delete %s %s %s", lpszDeviceID, lpszPosition,
lpszFlags);
digitalvideo | at rectangle audio stream stream from position |
to position video stream stream |
waveaudio | from position | to position |
The following table lists the flags that can be specified in the lpszPosition parameter and their meanings:
at rectangle | Specifies the portion of each frame deleted. If omitted, it defaults to the entire frame. When this item is specified, frames are not deleted. Instead the area inside the rectangle becomes black. |
audio stream stream | Specifies the audio stream in the workspace affected by the command. If you use this flag and also want to delete video, you must also use the "video stream" flag. (If neither flag is specified, all audio and video streams are deleted.) |
from position | Specifies the position at which deletion begins. If this flag is omitted, the deletion begins at the current position. |
to position | Specifies the position at which deletion ends. If this flag is omitted, the deletion continues to the end of the content or workspace. |
video stream stream | Specifies the video stream in the workspace affected by the command. If you use this flag and also want to delete audio, you must also use "audio stream" flag. (If neither flag is specified, all audio and video streams are deleted.) |
Returns zero if successful or an error otherwise.
Before issuing any commands that use position values, you should set the desired time format by using the set command.
The following command deletes the waveform-audio data from 1 millisecond through 900 milliseconds (assuming the time format is set to milliseconds):
delete mysound from 1 to 900
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mqoai.h.
Import Library: Use mqoa.lib.
Unicode: Defined only as Unicode.
MCI Overview, MCI Command Strings, set