|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsampler.DefaultAudioDeviceModel
public class DefaultAudioDeviceModel
This class provides default implementation of the AudioDeviceModel interface.
| Constructor Summary | |
|---|---|
DefaultAudioDeviceModel(AudioOutputDevice audioDevice)
Creates a new instance of DefaultAudioDeviceModel using the
specified non-null audio device. |
|
| Method Summary | |
|---|---|
void |
addAudioDeviceListener(AudioDeviceListener l)
Registers the specified listener to be notified when the settings of the audio device are changed. |
int |
getDeviceId()
Gets the numerical ID of this audio device. |
AudioOutputDevice |
getDeviceInfo()
Gets the current settings of the audio device represented by this model. |
boolean |
isActive()
Determines whether the audio device is active. |
void |
removeAudioDeviceListener(AudioDeviceListener l)
Removes the specified listener. |
void |
setActive(boolean active)
Sets whether the audio device is enabled or disabled. |
void |
setBackendActive(boolean active)
Schedules a new task for enabling/disabling the audio device. |
void |
setBackendChannelCount(int channels)
Schedules a new task for changing the channel number of the audio device. |
void |
setBackendChannelParameter(int channel,
Parameter prm)
Schedules a new task for altering a specific setting of the specified audio output channel. |
void |
setBackendDeviceParameter(Parameter prm)
Schedules a new task for altering a specific setting of the audio output device. |
void |
setDeviceInfo(AudioOutputDevice device)
Updates the settings of the audio device represented by this model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAudioDeviceModel(AudioOutputDevice audioDevice)
DefaultAudioDeviceModel using the
specified non-null audio device.
audioDevice - An AudioOutputDevice instance providing the current
settings of the audio device which will be represented by this model.
java.lang.IllegalArgumentException - If audioDevice is null.| Method Detail |
|---|
public void addAudioDeviceListener(AudioDeviceListener l)
addAudioDeviceListener in interface AudioDeviceModell - The AudioDeviceListener to register.public void removeAudioDeviceListener(AudioDeviceListener l)
removeAudioDeviceListener in interface AudioDeviceModell - The AudioDeviceListener to remove.public int getDeviceId()
getDeviceId in interface AudioDeviceModelpublic AudioOutputDevice getDeviceInfo()
getDeviceInfo in interface AudioDeviceModelAudioOutputDevice instance providing
the current settings of the audio device represented by this model.public void setDeviceInfo(AudioOutputDevice device)
setDeviceInfo in interface AudioDeviceModeldevice - The new audio device settings.public void setActive(boolean active)
setActive in interface AudioDeviceModelactive - If true the audio device is enabled,
else the device is disabled.public boolean isActive()
isActive in interface AudioDeviceModeltrue if the device is enabled and false otherwise.public void setBackendActive(boolean active)
setBackendActive in interface AudioDeviceModelactive - If true the audio device is enabled,
else the device is disabled.public void setBackendDeviceParameter(Parameter prm)
setBackendDeviceParameter in interface AudioDeviceModelprm - The parameter to be set.public void setBackendChannelCount(int channels)
setBackendChannelCount in interface AudioDeviceModelchannels - The new number of audio channels.
public void setBackendChannelParameter(int channel,
Parameter prm)
setBackendChannelParameter in interface AudioDeviceModelchannel - The channel number.prm - The parameter to be set.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||