public class AudioNotifierServiceImpl extends Object implements AudioNotifierService, PropertyChangeListener
| Constructor and Description |
|---|
AudioNotifierServiceImpl()
Initializes a new AudioNotifierServiceImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
audioOutAndNotificationsShareSameDevice()
Checks whether the playback and notification configuration share the same
device.
|
SCAudioClip |
createAudio(String uri)
Creates an SCAudioClip from the given URI and adds it to the list of
available audio-s.
|
SCAudioClip |
createAudio(String uri,
boolean playback)
Creates an SCAudioClip from the given URI and adds it to the list of
available audio-s.
|
DeviceConfiguration |
getDeviceConfiguration()
The device configuration.
|
boolean |
isMute()
Returns true if the sound is currently disabled; false,
otherwise.
|
void |
propertyChange(PropertyChangeEvent ev)
Listens for changes in notify device.
|
void |
setMute(boolean mute)
Enables or disables the sound in the application.
|
public AudioNotifierServiceImpl()
public boolean audioOutAndNotificationsShareSameDevice()
audioOutAndNotificationsShareSameDevice in interface AudioNotifierServicepublic SCAudioClip createAudio(String uri)
createAudio in interface AudioNotifierServiceuri - the path where the audio file could be foundpublic SCAudioClip createAudio(String uri, boolean playback)
createAudio in interface AudioNotifierServiceuri - the path where the audio file could be foundplayback - use or not the playback device.public DeviceConfiguration getDeviceConfiguration()
public boolean isMute()
isMute in interface AudioNotifierServicepublic void propertyChange(PropertyChangeEvent ev)
propertyChange in interface PropertyChangeListenerev - the event that notify device has changed.public void setMute(boolean mute)
setMute in interface AudioNotifierServicemute - when true disables the sound; otherwise, enables the
sound.Copyright © 2021 jitsi.org. All rights reserved.