Help Center

CDSAudio.WaitForCompletionmethod

Waits for the filter graph to render all available data.

AudiomethodCDSAudio.incdocumented

Syntax

FUNCTION WaitForCompletion (BYVAL msTimeout AS LONG, BYREF EvCode AS LONG) AS HRESULT

Parameters

NameDescription
msTimeoutDuration of the time-out, in milliseconds. Pass zero to return immediately. To block indefinitely, pass INFINITE.
EvCodeOut. Event that terminated the wait. This value can be one of the following:
EC_COMPLETE : Operation completed.
EC_ERRORABORT : Error. Playback cannot continue.
EC_USERABORT : User terminated the operation.
Zero (0) = Operation has not completed.

Description

Waits for the filter graph to render all available data.

Remarks

This method blocks until the time-out expires, or one of the following events occurs:

EC_COMPLETE
EC_ERRORABORT
EC_USERABORT

During the wait, the method discards all other event notifications.

If the return value is S_OK, the EvCode parameter receives the event code that ended the wait. When the method returns, the filter graph is still running. The application can pause or stop the graph, as appropriate.

Reference

  • Include file CDSAudio.inc
  • Defined in AfxNova/CDSAudio.inc:227
  • Documented in Audio/CDSAudio Class.md
  • Topic: CDSAudio Class