SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.notify
Class AudioNotifierServiceImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.media.notify.AudioNotifierServiceImpl
All Implemented Interfaces:
PropertyChangeListener, EventListener, AudioNotifierService

public class AudioNotifierServiceImpl
extends Object
implements AudioNotifierService, PropertyChangeListener

The implementation of the AudioNotifierService.

Author:
Yana Stamcheva

Constructor Summary
AudioNotifierServiceImpl(DeviceConfiguration deviceConfiguration)
          Creates audio notify service.
 
Method Summary
 SCAudioClipImpl createAudio(String uri)
          Creates an SCAudioClip from the given URI and adds it to the list of available audio-s.
 void destroyAudio(SCAudioClip audioClip)
          Removes the given audio from the list of available audio clips.
 DeviceConfiguration getDeviceConfiguration()
          The device configuration.
 boolean isMute()
          Returns TRUE if the sound is currently disabled, FALSE otherwise.
 void propertyChange(PropertyChangeEvent evt)
          Listens for changes in notify device
 void setMute(boolean isMute)
          Enables or disables the sound in the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioNotifierServiceImpl

public AudioNotifierServiceImpl(DeviceConfiguration deviceConfiguration)
Creates audio notify service.

Parameters:
deviceConfiguration - the device configuration.
Method Detail

createAudio

public SCAudioClipImpl createAudio(String uri)
Creates an SCAudioClip from the given URI and adds it to the list of available audio-s.

Specified by:
createAudio in interface AudioNotifierService
Parameters:
uri - the path where the audio file could be found
Returns:
the created SCAudioClip, that could be played.

destroyAudio

public void destroyAudio(SCAudioClip audioClip)
Removes the given audio from the list of available audio clips.

Specified by:
destroyAudio in interface AudioNotifierService
Parameters:
audioClip - the audio to destroy

setMute

public void setMute(boolean isMute)
Enables or disables the sound in the application. If FALSE, we try to restore all looping sounds if any.

Specified by:
setMute in interface AudioNotifierService
Parameters:
isMute - when TRUE disables the sound, otherwise enables the sound.

isMute

public boolean isMute()
Returns TRUE if the sound is currently disabled, FALSE otherwise.

Specified by:
isMute in interface AudioNotifierService
Returns:
TRUE if the sound is currently disabled, FALSE otherwise

getDeviceConfiguration

public DeviceConfiguration getDeviceConfiguration()
The device configuration.

Returns:
the deviceConfiguration

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Listens for changes in notify device

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - the event that notify device has changed.

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.