Microsoft DirectX 9.0

IMediaParams::FlushEnvelope

The FlushEnvelope method flushes envelope data for a specified parameter over the specified time range.

Syntax

HRESULT FlushEnvelope(
    DWORD dwParamIndex,
    REFERENCE_TIME refTimeStart,
    REFERENCE_TIME refTimeEnd
);

Parameters

dwParamIndex

[in] Zero-based index of the parameter, or DWORD_ALLPARAMS to flush envelope data from every parameter.

refTimeStart

[in] Start time of the envelope data to flush.

refTimeEnd

[in] Stop time of the envelope data to flush.

Return Values

Returns an HRESULT value. Possible values include the following.

Return Code Description
E_INVALIDARG Index out of range.
S_OK Success.

Remarks

If the time span specified by refTimeStart and refTimeEnd overlaps an envelope segment, the entire segment is flushed. On the other hand, if it falls on the boundary of an envelope segment, the entire segment is retained. Thus:

To enumerate the parameters supported by this object, along with their index values, use the IMediaParamInfo interface.

See Also