1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005 Grigor Kirilov Iliev |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
25 |
import org.jsampler.event.AudioDeviceListener; |
import org.jsampler.event.AudioDeviceListener; |
26 |
|
|
27 |
import org.linuxsampler.lscp.AudioOutputDevice; |
import org.linuxsampler.lscp.AudioOutputDevice; |
28 |
|
import org.linuxsampler.lscp.Parameter; |
29 |
|
|
30 |
|
|
31 |
/** |
/** |
52 |
* @return The numerical ID of this audio device or |
* @return The numerical ID of this audio device or |
53 |
* -1 if the device number is not set. |
* -1 if the device number is not set. |
54 |
*/ |
*/ |
55 |
public int getDeviceID(); |
public int getDeviceId(); |
56 |
|
|
57 |
/** |
/** |
58 |
* Gets the current settings of the audio device represented by this model. |
* Gets the current settings of the audio device represented by this model. |
79 |
* @return <code>true</code> if the device is enabled and <code>false</code> otherwise. |
* @return <code>true</code> if the device is enabled and <code>false</code> otherwise. |
80 |
*/ |
*/ |
81 |
public boolean isActive(); |
public boolean isActive(); |
82 |
|
|
83 |
|
/** |
84 |
|
* Schedules a new task for enabling/disabling the audio device. |
85 |
|
* @param active If <code>true</code> the audio device is enabled, |
86 |
|
* else the device is disabled. |
87 |
|
*/ |
88 |
|
public void setBackendActive(boolean active); |
89 |
|
|
90 |
|
/** |
91 |
|
* Schedules a new task for changing the channel number of the audio device. |
92 |
|
* @param channels The new number of audio channels. |
93 |
|
*/ |
94 |
|
public void setBackendChannelCount(int channels); |
95 |
|
|
96 |
|
/** |
97 |
|
* Schedules a new task for altering a specific |
98 |
|
* setting of the specified audio output channel. |
99 |
|
* @param channel The channel number. |
100 |
|
* @param prm The parameter to be set. |
101 |
|
*/ |
102 |
|
public void setBackendChannelParameter(int channel, Parameter prm); |
103 |
} |
} |