public interface Speaker extends GenericDevice
| Modifier and Type | Field and Description |
|---|---|
static String |
SPEAKER_NOISE_LEVEL
TODO comments.
|
static String |
SPEAKER_VOLUME
Service property indicating the current volume of the speaker.
|
DEFAULT_HEIGHT, DEFAULT_WIDTH, DEVICE_SERIAL_NUMBER, FAULT_NO, FAULT_PROPERTY_NAME, FAULT_UNKNOWN, FAULT_YES, LOCATION_PROPERTY_NAME, LOCATION_UNKNOWN, STATE_ACTIVATED, STATE_DEACTIVATED, STATE_PROPERTY_NAME, STATE_UNKNOWN| Modifier and Type | Method and Description |
|---|---|
double |
getNoiseLevel()
TODO comments.
|
double |
getVolume()
Return the current volume of this speaker.
|
void |
setAudioSource(AudioSource source)
Set the audio stream that this speaker must play.
|
double |
setVolume(double volume)
Change the volume of this speaker.
|
addListener, constainsProperty, enterInZones, getFault, getProperties, getPropertyValue, getSerialNumber, getState, hasPropertyValue, leavingZones, removeListener, removeProperty, setFault, setPropertyValue, setStatestatic final String SPEAKER_VOLUME
java.lang.Double, between
0.0d and 1.0d0.0d when the speaker is
completely muted, 1.0d when volume is set to the maximum.getVolume(),
setVolume(double),
Constant Field Valuesstatic final String SPEAKER_NOISE_LEVEL
double getVolume()
setVolume(double),
SPEAKER_VOLUMEdouble setVolume(double volume)
volume - the new volume of this speaker.getVolume(),
SPEAKER_VOLUMEdouble getNoiseLevel()
void setAudioSource(AudioSource source)
source - the audio source to play, or null to stop playing.Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.