Stops the recording operation.
AG
CG
DWORD adiStopRecording ( CTAHD ctahd)
|
Argument |
Description |
|
ctahd |
Context handle returned by ctaCreateContext or ctaAttachContext. |
|
Return value |
Description |
|
SUCCESS |
|
|
CTAERR_FUNCTION_NOT_ACTIVE |
Attempt made to stop a function that was not running. |
|
CTAERR_INVALID_CTAHD |
Context handle is invalid. |
|
CTAERR_INVALID_SEQUENCE |
Attempt made to stop a function that is already being stopped. |
|
CTAERR_INVALID_STATE |
Function not available in the current port state. |
|
CTAERR_SVR_COMM |
Server communication error. |
|
Event |
Description |
|
ADIEVN_RECORD_DONE |
After recording stops and the final buffer is presented, the ADI service generates a DONE event with the value field set to CTA_REASON_STOPPED. |
Use adiStopRecording to stop the recording operation started by either adiStartRecording, adiRecordToMemory, or adiRecordAsync. You can restart recording when you receive the DONE event.
For more information, refer to Recording.