Parameters, Returns, 0 on success – Sensoray 2246 User Manual
Page 31
Parameters:
param is the parameter to change ( MID2246_LEVEL_CONTRAST,
MID2246_LEVEL_BRIGHTNESS, MID2246_LEVEL_SATURATION,
MID2246_LEVEL_HUE)
value is the value of the parameter (0--mininum, 128 nominal, 255 max)
board ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_SetAudioInput (MID2246_AUDIO_INPUT audio, int micBoost, int
board)
Set audio input channel (default is MID2246_AUDIO_LINE)
Parameters:
audio is the audio channel input line-in, MID2246_AUDIO_LINE, MID2246_AUDIO_MIC
micBoost 0--normal, 1--+20dB
board ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_SetAudioOutput (MID2246_AUDIO_OUTPUT audio, int board)
Set audio input channel sent to SDI-OUT embedded audio (default is
MID2246_OAUDIO_EMB_AUD)
Parameters:
audio
: MID2246_AUDIO_OUTPUT Embedded Audio on selected input or
line/mic-in: MID2246_AUDIO_EMB_AUD, MID2246_AUDIO_LINE_MIC.
board
ID if multiple boards installed.
Returns:
0 on success
MID2246_API int SN_GetStatus (MIDSRAYSTATUS * pStats, int board)
Retrieves current API statistics and file information( see MIDSRAYSTATUS structure
above)
Parameters:
pStats pointer to
board ID if multiple boards installed.
Returns:
0 on success, negative otherwise (see errors in mid22xxconst.h)
MID2246_API int SN_GetFrameSync (int * sync, int board)
Check whether a video sync pulse has occurred.
Parameters:
sync pointer to an integer that receives '1' if a video sync has occurred since the last call.
board ID if multiple boards installed.
Returns:
Same value that is put in states variable location.
31