beautypg.com

S2253_setaudiogain, S2253_getaudiogain – Sensoray 2253 Windows User Manual

Page 34

background image

int

devid)

Gets the current audio input setting.
input

MID2253_AUDIO_MIC (microphone), MID2253_AUDIO_LINE (line).

devid

device id in the system (use 0 with a single board installed).

S2253_SetAudioGain

MID2253_API int __stdcall S2253_SetAudioGain (

BOOL

bAGC,

int

gain,

int

devid)

Sets the audio input gain. If bAGC is TRUE, the gain setting is ignored and
automatic gain control is used. If bAGC is FALSE, the gain is manual. This
setting applies to both streams and the separate audio stream
(S2253_StartAudioPreview).
bAGC

Turns AGC on or off (FALSE).

gain

Manual gain when AGC off. Value from 0 to 119 in steps of 0.5dB. 0=0dB,
1=0.5dB, 119= 59.5dB.

devid

device id in the system (use 0 with a single board installed).

S2253_GetAudioGain

MID2253_API int __stdcall S2253_GetAudioGain (

BOOL

bAGC,

int

gain,

int

devid)

Retrieves the audio input gain parameters.
bAGC

pointer to AGC control setting

gain

pointer to manual audio gain.

devid

device id in the system (use 0 with a single board installed).

34

This manual is related to the following products: