public class HardwareVolumeControl extends BasicVolumeControl
MAX_VOLUME_LEVEL, MAX_VOLUME_PERCENT, MIN_VOLUME_LEVEL, MIN_VOLUME_PERCENT, volumeLevelCAPTURE_VOLUME_LEVEL_PROPERTY_NAME, PLAYBACK_VOLUME_LEVEL_PROPERTY_NAME| Constructor and Description |
|---|
HardwareVolumeControl(MediaServiceImpl mediaServiceImpl,
String volumeLevelConfigurationPropertyName)
Creates volume control instance and initializes initial level value
if stored in the configuration service.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCaptureDeviceUID()
Returns the selected input device UID.
|
protected static float |
getDefaultVolumeLevel()
Returns the default volume level.
|
protected static float |
getGainReferenceLevel()
Returns the reference volume level for computing the gain.
|
protected float |
getInputDeviceVolume(String deviceUID)
Returns the device volume via the system API.
|
float |
getVolume()
Current volume value.
|
protected int |
setInputDeviceVolume(String deviceUID,
float volume)
Changes the device volume via the system API.
|
protected void |
updateHardwareVolume()
Modifies the hardware microphone sensibility (hardware amplification).
|
addGainChangeListener, addVolumeChangeListener, applyGain, getControlComponent, getDB, getLevel, getMaxValue, getMinValue, getMute, loadVolume, removeGainChangeListener, removeVolumeChangeListener, setDB, setLevel, setMute, setVolumepublic HardwareVolumeControl(MediaServiceImpl mediaServiceImpl, String volumeLevelConfigurationPropertyName)
mediaServiceImpl - The media service implementation.volumeLevelConfigurationPropertyName - the name of the configuration
property which specifies the value of the volume level of the new
instanceprotected static float getDefaultVolumeLevel()
protected static float getGainReferenceLevel()
protected void updateHardwareVolume()
updateHardwareVolume in class BasicVolumeControlprotected String getCaptureDeviceUID()
protected int setInputDeviceVolume(String deviceUID, float volume)
deviceUID - The device ID.volume - The volume requested.protected float getInputDeviceVolume(String deviceUID)
deviceUID - The device ID.public float getVolume()
getVolume in interface VolumeControlgetVolume in class BasicVolumeControlVolumeControlCopyright © 2021 jitsi.org. All rights reserved.