Reference that, on return from the method call, will contain the threshold for the Sound Activation System.
Supported values are in the range from 0 (Sound Activation System disabled, same as setting nMode parameter to SOUND_ACTIVATION_SYSTEM_DISABLED) to 32767 (sound recording always enabled).
If for example you should set a value of 800, any incoming sound having a volume level lower than 800 would be considered as silent and would be discarded.
In case you should need to set a threshold value expressed in dB, before setting this parameter you could convert the value in dB into a linear value through the following formula (C syntax):
ValueLinear = 32767 * pow (10, ValueInDB/20);
|