ThbTapiPhone.Handset.Gain
Unit: hbTapi

This property is used to get and set the value of the microphone gain. Valid values are 0 (silence) to hex FFFF.

Availability

Design-Time: None / Run-Time: Read, Write

Declaration

property Gain: Cardinal; // DWORD

Remarks

In TAPI the phoneSetGain function is called. This function works in an asynchronous manner. See the SyncMode property to read more about the handling of asynchronous functions.

Errors

Setting this property may cause an EhbTapiError exception . Possible errors are:

PHONEERR_INVALPHONEHANDLE, PHONEERR_NOMEM, PHONEERR_NOTOWNER, PHONEERR_RESOURCEUNAVAIL, PHONEERR_INVALPHONESTATE, PHONEERR_OPERATIONFAILED, PHONEERR_INVALHOOKSWITCHDEV, PHONEERR_UNINITIALIZED, PHONEERR_OPERATIONUNAVAIL.

See Also

ThbTapiPhone.OnHandsetGain | OnHeadsetGain | OnSpeakerphoneGain