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

Page 34

Advertising
background image

Parameters:

board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_StopStream (int board = 0)

Stops video/audio stream and stops recording if recording

Parameters:

board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_LowLatency (BOOL bON, int board)

Low Latency mode runs the direct show graph with sync clock = -1 The video will go
through the graph at the maximum speed without pacing The tradeoff is the audio/video may
not be synched and the video may not be completely smooth. Call this function before
starting the stream (with SN_StartStream() ) if desired.

Parameters:

bON Enable or disable low latency mode.
board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_StartRecord (char * filename, int size, int breakonrecsize = 0, int

board = 0)

Starts recording to file using filter graph previously set up.

Parameters:

filename is the filename to record to. Use the full path, no extension
size is the size of the files to record in Megabytes. If size full, then a new file started with an
incremental number appended to the filename.
breakonrecsize flag indicating whether to, 1=end recording when filesize reaches size, or
0=continue recording to new file.
board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_StartRecordW (LPWSTR filename, int size, int breakonrecsize = 0, int

board = 0)

Unicode version of SN_StartRecord() Starts recording to file using filter graph previously
set up. Note that function SN_StartRecord() will try to detect if a unicode string passed to it,
but this is not guaranteed (see Microsoft MSDN notes on IsUnicodeText.) If using Unicode
filenames, please use the proper function.

Parameters:

filename Full filename plus path and no extension in unicode (Windows WideChar)
size is the size of the files to record in Megabytes if size full, then a new file started with an
incremental number appended to the filename

34

Advertising