adiStopRecording

Stops the recording operation.

Supported board types

Prototype

DWORD adiStopRecording ( CTAHD ctahd)

Argument

Description

ctahd

Context handle returned by ctaCreateContext or ctaAttachContext.

Return values

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.

Events

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.

Details

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.