1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
119 |
* @return The model of the specified audio device or <code>null</code> |
* @return The model of the specified audio device or <code>null</code> |
120 |
* if there is no audio device with ID <code>deviceId</code>. |
* if there is no audio device with ID <code>deviceId</code>. |
121 |
*/ |
*/ |
122 |
public AudioDeviceModel getAudioDeviceModel(int deviceId); |
public AudioDeviceModel getAudioDeviceById(int deviceId); |
123 |
|
|
124 |
/** |
/** |
125 |
* Gets the current number of audio devices. |
* Gets the current number of audio devices. |
131 |
* Gets the current list of audio device models. |
* Gets the current list of audio device models. |
132 |
* @return The current list of audio device models. |
* @return The current list of audio device models. |
133 |
*/ |
*/ |
134 |
public AudioDeviceModel[] getAudioDeviceModels(); |
public AudioDeviceModel[] getAudioDevices(); |
135 |
|
|
136 |
/** |
/** |
137 |
* Adds the specified audio device. |
* Adds the specified audio device. |
145 |
* @return <code>true</code> if the audio device is removed successfully, <code>false</code> |
* @return <code>true</code> if the audio device is removed successfully, <code>false</code> |
146 |
* if the device list does not contain audio device with ID <code>deviceId</code>. |
* if the device list does not contain audio device with ID <code>deviceId</code>. |
147 |
*/ |
*/ |
148 |
public boolean removeAudioDevice(int deviceId); |
public boolean removeAudioDeviceById(int deviceId); |
149 |
|
|
150 |
/** |
/** |
151 |
* Removes (on the backend side) the specified audio device. |
* Removes (on the backend side) the specified audio device. |
167 |
* @return The model of the specified MIDI device or <code>null</code> |
* @return The model of the specified MIDI device or <code>null</code> |
168 |
* if there is no MIDI device with ID <code>deviceId</code>. |
* if there is no MIDI device with ID <code>deviceId</code>. |
169 |
*/ |
*/ |
170 |
public MidiDeviceModel getMidiDeviceModel(int deviceId); |
public MidiDeviceModel getMidiDeviceById(int deviceId); |
171 |
|
|
172 |
/** |
/** |
173 |
* Gets the current number of MIDI input devices. |
* Gets the current number of MIDI input devices. |
179 |
* Gets the current list of MIDI device models. |
* Gets the current list of MIDI device models. |
180 |
* @return The current list of MIDI device models. |
* @return The current list of MIDI device models. |
181 |
*/ |
*/ |
182 |
public MidiDeviceModel[] getMidiDeviceModels(); |
public MidiDeviceModel[] getMidiDevices(); |
183 |
|
|
184 |
/** |
/** |
185 |
* Adds the specified MIDI device. |
* Adds the specified MIDI device. |
200 |
* @return <code>true</code> if the MIDI device is removed successfully, <code>false</code> |
* @return <code>true</code> if the MIDI device is removed successfully, <code>false</code> |
201 |
* if the device list does not contain MIDI device with ID <code>deviceId</code>. |
* if the device list does not contain MIDI device with ID <code>deviceId</code>. |
202 |
*/ |
*/ |
203 |
public boolean removeMidiDevice(int deviceId); |
public boolean removeMidiDeviceById(int deviceId); |
204 |
|
|
205 |
/** |
/** |
206 |
* Schedules a new task for removing the specified MIDI device. |
* Schedules a new task for removing the specified MIDI device. |
255 |
* <code>false</code> if the MIDI instrument map's list does not contain |
* <code>false</code> if the MIDI instrument map's list does not contain |
256 |
* MIDI instrument map with ID <code>mapId</code>. |
* MIDI instrument map with ID <code>mapId</code>. |
257 |
*/ |
*/ |
258 |
public boolean removeMidiInstrumentMap(int mapId); |
public boolean removeMidiInstrumentMapById(int mapId); |
259 |
|
|
260 |
/** Removes all MIDI instrument maps. */ |
/** Removes all MIDI instrument maps. */ |
261 |
public void removeAllMidiInstrumentMaps(); |
public void removeAllMidiInstrumentMaps(); |
311 |
* Gets the current list of sampler channel models. |
* Gets the current list of sampler channel models. |
312 |
* @return The current list of sampler channel models. |
* @return The current list of sampler channel models. |
313 |
*/ |
*/ |
314 |
public SamplerChannelModel[] getChannelModels(); |
public SamplerChannelModel[] getChannels(); |
315 |
|
|
316 |
/** |
/** |
317 |
* Gets the model of the sampler channel with ID <code>channelId</code>. |
* Gets the model of the sampler channel with ID <code>channelId</code>. |
319 |
* @return The model of the specified sampler channel or <code>null</code> |
* @return The model of the specified sampler channel or <code>null</code> |
320 |
* if there is no channel with ID <code>channelId</code>. |
* if there is no channel with ID <code>channelId</code>. |
321 |
*/ |
*/ |
322 |
public SamplerChannelModel getChannelModel(int channelId); |
public SamplerChannelModel getChannelById(int channelId); |
323 |
|
|
324 |
/** |
/** |
325 |
* Gets the current number of sampler channels. |
* Gets the current number of sampler channels. |
349 |
* @return <code>true</code> if the channel is removed successfully, <code>false</code> |
* @return <code>true</code> if the channel is removed successfully, <code>false</code> |
350 |
* if the channel's list does not contain channel with ID <code>channelId</code>. |
* if the channel's list does not contain channel with ID <code>channelId</code>. |
351 |
*/ |
*/ |
352 |
public boolean removeChannel(int channelId); |
public boolean removeChannelById(int channelId); |
353 |
|
|
354 |
/** |
/** |
355 |
* Schedules a new task for removing the specified sampler channel on the backend side. |
* Schedules a new task for removing the specified sampler channel on the backend side. |