Sensoray 2224 Windows User Manual
Page 25

MID2226_API int S2226_GetAudioGain(
int *gainL,
int *gainR,
HANDLE hdev
);
Retrieves gain settings for internal PGA audio amp.
Parameters
gainL
gain for left channel(decibels times 2). 0-118 (0-59dB) 0dB recommended for line input
gainR
gain for right channel(decibels times 2). 0-118 (0-59dB) 0dB recommended for line input
hdev
handle to device (obtained from S2226_OpenBoard).
Returns
0 on success, negative value if error (see mid2226types.h for error codes list).
MID2226_API int S2226_SetAudioAgc(
int bOnL,
int bOnR,
int gainL,
int gainR,
HANDLE hdev
);
Sets gain settings for audio automatic gain control.
Parameters
bOnL
toggles AGC gain for left channel. 0(off) recommended for line input.
bOnR
toggles AGC gain for right channel. 0(off) recommended for line input.
25