Mid2246_api int sn_pauserecord (int board = 0), Parameters, Returns – Sensoray 2246 User Manual

Page 36: Mid2246_api int sn_resumerecord (int board = 0), Mid2246_api int sn_stoprecord (int board = 0)

Advertising
background image

MID2246_API int SN_PauseRecord (int board = 0)

Pause recording.

Parameters:

board ID if multiple boards installed.

Returns:

HRESULT = S_OK on success

MID2246_API int SN_ResumeRecord (int board = 0)

Resume recording.

Parameters:

board ID if multiple boards installed.

Returns:

HRESULT = S_OK on success

MID2246_API int SN_StopRecord (int board = 0)

Stops recording to file. video/sound preview window will continue.

Parameters:

board ID if multiple boards installed.

Returns:

HRESULT = S_OK on success

MID2246_API int SN_SetRecordMode (MID2246_REC recMode, int board = 0)

SetRecordMode encapsulates the SetRecord functions. It is the preferred method of setting
the parameters. In which case, the individual functions SN_SetRecordVideoStream(),
SN_SetRecordAudioStream() and SN_SetRecordAudioEncode() are NOT required.

Parameters:

recMode MID2246_REC setting (see mid2246const.h)
board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_SetRecordVideoStream (BOOL bRecVid, int board = 0)

Turn on/off video recording NOTE: this is different from SN_StartRecord(), etc.
SN_SetRecordVideoStream()

and

SN_SetRecordAudioStream()

are to allow

configuration for either Video or Audio Elementary stream while recording. If
RecordVideoStream is turned off, no video stream is sent to the recording module. If
RecordAudioStream is turned off, no audio is sent to the recording module.(different from
mute)

Parameters:

bRecVid whether to record video or not.
board ID if multiple boards installed.

Returns:

0 on success

36

Advertising