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. |
236 |
public MidiInstrumentMap[] getMidiInstrumentMaps(); |
public MidiInstrumentMap[] getMidiInstrumentMaps(); |
237 |
|
|
238 |
/** |
/** |
239 |
|
* Gets the position of the specified MIDI instrument map in the list. |
240 |
|
* @param map The map whose index should be returned. |
241 |
|
* @return The position of the specified map in the list, |
242 |
|
* or -1 if <code>map</code> is <code>null</code> or |
243 |
|
* the map list does not contain the specified map. |
244 |
|
*/ |
245 |
|
public int getMidiInstrumentMapIndex(MidiInstrumentMap map); |
246 |
|
|
247 |
|
/** |
248 |
* Adds the specified MIDI instrument map. |
* Adds the specified MIDI instrument map. |
249 |
* @param map The MIDI instrument map to be added. |
* @param map The MIDI instrument map to be added. |
250 |
*/ |
*/ |
264 |
* <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 |
265 |
* MIDI instrument map with ID <code>mapId</code>. |
* MIDI instrument map with ID <code>mapId</code>. |
266 |
*/ |
*/ |
267 |
public boolean removeMidiInstrumentMap(int mapId); |
public boolean removeMidiInstrumentMapById(int mapId); |
268 |
|
|
269 |
/** Removes all MIDI instrument maps. */ |
/** Removes all MIDI instrument maps. */ |
270 |
public void removeAllMidiInstrumentMaps(); |
public void removeAllMidiInstrumentMaps(); |
320 |
* Gets the current list of sampler channel models. |
* Gets the current list of sampler channel models. |
321 |
* @return The current list of sampler channel models. |
* @return The current list of sampler channel models. |
322 |
*/ |
*/ |
323 |
public SamplerChannelModel[] getChannelModels(); |
public SamplerChannelModel[] getChannels(); |
324 |
|
|
325 |
/** |
/** |
326 |
* Gets the model of the sampler channel with ID <code>channelId</code>. |
* Gets the model of the sampler channel with ID <code>channelId</code>. |
328 |
* @return The model of the specified sampler channel or <code>null</code> |
* @return The model of the specified sampler channel or <code>null</code> |
329 |
* if there is no channel with ID <code>channelId</code>. |
* if there is no channel with ID <code>channelId</code>. |
330 |
*/ |
*/ |
331 |
public SamplerChannelModel getChannelModel(int channelId); |
public SamplerChannelModel getChannelById(int channelId); |
332 |
|
|
333 |
/** |
/** |
334 |
* Gets the current number of sampler channels. |
* Gets the current number of sampler channels. |
358 |
* @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> |
359 |
* 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>. |
360 |
*/ |
*/ |
361 |
public boolean removeChannel(int channelId); |
public boolean removeChannelById(int channelId); |
362 |
|
|
363 |
/** |
/** |
364 |
* 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. |
374 |
public void updateChannel(SamplerChannel channel); |
public void updateChannel(SamplerChannel channel); |
375 |
|
|
376 |
/** |
/** |
377 |
|
* Schedules a new task for starting an instrument editor for editing |
378 |
|
* the loaded instrument on the specified sampler channel. |
379 |
|
* @param channelId The sampler channel number. |
380 |
|
*/ |
381 |
|
public void editBackendInstrument(int channelId); |
382 |
|
|
383 |
|
/** |
384 |
* Determines whether there is at least one solo channel in the current list |
* Determines whether there is at least one solo channel in the current list |
385 |
* of sampler channels. |
* of sampler channels. |
386 |
* @return <code>true</code> if there is at least one solo channel in the current list of |
* @return <code>true</code> if there is at least one solo channel in the current list of |