public interface AudioEventsHandler
Modifier and Type | Method and Description |
---|---|
default void |
onDeviceError(AudioDevice audioDevice,
AudioDeviceState deviceState)
An error occurred with an audio device
An error occurred, usually when attempting to open a device.
|
default void |
onDeviceOpenError(java.util.List<AudioDevice> deviceList)
An error occurred when trying to open an audio device
An error occurred when attempting to open an audio device or an internal processing stream.
|
default void |
onDeviceStateChange(AudioDevice audioDevice,
AudioDeviceState deviceState)
Notify upon audio device changed its state
|
default void |
onEnergyLevelChange(double inLevel,
double outLevel)
Notify upon input/output sound energy level changed
This callback is fired when the audio subsystem detects a change in the sound energy levels for the input (microphone) and/or output (speaker)
measured in dBm0.
|
default void |
onInputLevelChange(AudioDevice audioDevice,
double level)
Notify upon input volume level changed
This callback is fired when the audio subsystem detects a change in the input volume settings caused by external factors (for example the
user changing the input device volume from the system mixer).
|
default void |
onOutputLevelChange(AudioDevice audioDevice,
double level)
Notify upon output volume level changed
This callback is fired when the audio subsystem detects a change in the output volume settings caused by external factors (for example the
user changing the output device volume from the system mixer).
|
default void |
onRingLevelChange(AudioDevice audioDevice,
double level)
Notify upon Ringing volume level changed
This callback is fired when the audio subsystem detects a change in the Ringing volume settings caused by external factors (for example the
user changing the ring device volume from the system mixer).
|
default void onInputLevelChange(AudioDevice audioDevice, double level)
audioDevice
- The audio devicelevel
- Input level from 0.0 (silent) to 1.0 (full volume)AudioDevice
default void onOutputLevelChange(AudioDevice audioDevice, double level)
audioDevice
- The audio devicelevel
- Output level from 0.0 (silent) to 1.0 (full volume)AudioDevice
default void onRingLevelChange(AudioDevice audioDevice, double level)
audioDevice
- The audio devicelevel
- Ringing level from 0.0 (silent) to 1.0 (full volume)AudioDevice
default void onEnergyLevelChange(double inLevel, double outLevel)
inLevel
- Input/microphone energy level in dBm0outLevel
- Output/speaker energy level in dBm0default void onDeviceStateChange(AudioDevice audioDevice, AudioDeviceState deviceState)
audioDevice
- The audio devicedeviceState
- Audio device stateAudioDeviceState
default void onDeviceError(AudioDevice audioDevice, AudioDeviceState deviceState)
audioDevice
- The audio devicedeviceState
- Audio device stateAudioDeviceState
default void onDeviceOpenError(java.util.List<AudioDevice> deviceList)
deviceList
- A list of the devices which failed to openAudioDevice