1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2011 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
113 |
*/ |
*/ |
114 |
public AudioOutputDriver[] getAudioOutputDrivers(); |
public AudioOutputDriver[] getAudioOutputDrivers(); |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
/** |
119 |
|
* Gets the model of the audio device at the specified position. |
120 |
|
* @param index The position of the audio device to return. |
121 |
|
* @return The model of the audio device at the specified position. |
122 |
|
* @see #getAudioDeviceCount |
123 |
|
*/ |
124 |
|
public AudioDeviceModel getAudioDevice(int index); |
125 |
|
|
126 |
/** |
/** |
127 |
* Gets the model of the audio device with ID <code>deviceId</code>. |
* Gets the model of the audio device with ID <code>deviceId</code>. |
128 |
* @param deviceId The ID of the audio device whose model should be obtained. |
* @param deviceId The ID of the audio device whose model should be obtained. |
172 |
public MidiInputDriver[] getMidiInputDrivers(); |
public MidiInputDriver[] getMidiInputDrivers(); |
173 |
|
|
174 |
/** |
/** |
175 |
|
* Gets the model of the MIDI device at the specified position. |
176 |
|
* @param index The position of the MIDI device to return. |
177 |
|
* @return The model of the MIDI device at the specified position. |
178 |
|
*/ |
179 |
|
public MidiDeviceModel getMidiDevice(int index); |
180 |
|
|
181 |
|
/** |
182 |
* Gets the model of the MIDI device with ID <code>deviceId</code>. |
* Gets the model of the MIDI device with ID <code>deviceId</code>. |
183 |
* @param deviceId The ID of the MIDI device whose model should be obtained. |
* @param deviceId The ID of the MIDI device whose model should be obtained. |
184 |
* @return The model of the specified MIDI device or <code>null</code> |
* @return The model of the specified MIDI device or <code>null</code> |
340 |
public SamplerChannelModel[] getChannels(); |
public SamplerChannelModel[] getChannels(); |
341 |
|
|
342 |
/** |
/** |
343 |
|
* Gets the model of the sampler channel in the specified position. |
344 |
|
* @param index The position of the channel to return. |
345 |
|
* @return The model of the specified sampler channel. |
346 |
|
* @see #getchannelCount |
347 |
|
*/ |
348 |
|
public SamplerChannelModel getChannel(int index); |
349 |
|
|
350 |
|
/** |
351 |
* Gets the model of the sampler channel with ID <code>channelId</code>. |
* Gets the model of the sampler channel with ID <code>channelId</code>. |
352 |
* @param channelId The ID of the sampler channel whose model should be obtained. |
* @param channelId The ID of the sampler channel whose model should be obtained. |
353 |
* @return The model of the specified sampler channel or <code>null</code> |
* @return The model of the specified sampler channel or <code>null</code> |
356 |
public SamplerChannelModel getChannelById(int channelId); |
public SamplerChannelModel getChannelById(int channelId); |
357 |
|
|
358 |
/** |
/** |
359 |
|
* Gets the position of the specified channel. |
360 |
|
* @param channel The model of the channel. |
361 |
|
* @return The position of the specified channel in the channel list or -1 |
362 |
|
* if the channel is not in the list. |
363 |
|
*/ |
364 |
|
public int getChannelIndex(SamplerChannelModel channel); |
365 |
|
|
366 |
|
/** |
367 |
* Gets the current number of sampler channels. |
* Gets the current number of sampler channels. |
368 |
* @return The current number of sampler channels. |
* @return The current number of sampler channels. |
369 |
*/ |
*/ |
394 |
public boolean removeChannelById(int channelId); |
public boolean removeChannelById(int channelId); |
395 |
|
|
396 |
/** |
/** |
397 |
|
* Removes all sampler channels. |
398 |
|
* Note that this method doesn't remove the channel in the backend. |
399 |
|
*/ |
400 |
|
public void removeAllChannels(); |
401 |
|
|
402 |
|
/** |
403 |
* 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. |
404 |
* @param channelId The ID of the channel to be removed. |
* @param channelId The ID of the channel to be removed. |
405 |
*/ |
*/ |
413 |
public void updateChannel(SamplerChannel channel); |
public void updateChannel(SamplerChannel channel); |
414 |
|
|
415 |
/** |
/** |
416 |
|
* Determines whether there are known upcoming changes to the |
417 |
|
* channel list, which should be considered as part of a single action. |
418 |
|
*/ |
419 |
|
public boolean getChannelListIsAdjusting(); |
420 |
|
|
421 |
|
/** |
422 |
|
* Sets whether the upcoming changes to the |
423 |
|
* channel list should be considered part of a single action. |
424 |
|
*/ |
425 |
|
public void setChannelListIsAdjusting(boolean b); |
426 |
|
|
427 |
|
/** |
428 |
* Schedules a new task for starting an instrument editor for editing |
* Schedules a new task for starting an instrument editor for editing |
429 |
* the loaded instrument on the specified sampler channel. |
* the loaded instrument on the specified sampler channel. |
430 |
* @param channelId The sampler channel number. |
* @param channelId The sampler channel number. |
459 |
public int getMutedBySoloChannelCount(); |
public int getMutedBySoloChannelCount(); |
460 |
|
|
461 |
/** |
/** |
462 |
|
* Gets the total number of active streams. |
463 |
|
* @return The total number of active streams. |
464 |
|
*/ |
465 |
|
public int getTotalStreamCount(); |
466 |
|
|
467 |
|
/** |
468 |
* Gets the total number of active voices. |
* Gets the total number of active voices. |
469 |
* @return The total number of active voices. |
* @return The total number of active voices. |
470 |
*/ |
*/ |
494 |
*/ |
*/ |
495 |
public void setBackendVolume(float volume); |
public void setBackendVolume(float volume); |
496 |
|
|
497 |
|
/** Gets the list of internal effects */ |
498 |
|
public EffectList getEffects(); |
499 |
|
|
500 |
/** |
/** |
501 |
* Schedules a new task for resetting the sampler. |
* Schedules a new task for resetting the sampler. |
502 |
*/ |
*/ |
503 |
public void resetBackend(); |
public void resetBackend(); |
504 |
|
|
505 |
/** |
/** |
506 |
|
* Updates the current number of active disk streams in the sampler. |
507 |
|
* @param count The new number of active streams. |
508 |
|
*/ |
509 |
|
public void updateActiveStreamsInfo(int count); |
510 |
|
|
511 |
|
/** |
512 |
* Updates the current and the maximum number of active voices in the sampler. |
* Updates the current and the maximum number of active voices in the sampler. |
513 |
* @param count The new number of active voices. |
* @param count The new number of active voices. |
514 |
* @param countMax The maximum number of active voices. |
* @param countMax The maximum number of active voices. |
515 |
*/ |
*/ |
516 |
public void updateActiveVoiceInfo(int count, int countMax); |
public void updateActiveVoiceInfo(int count, int countMax); |
517 |
|
|
518 |
|
/** |
519 |
|
* Determines whether the sampler configuration is modified. |
520 |
|
*/ |
521 |
|
public boolean isModified(); |
522 |
|
|
523 |
|
/** |
524 |
|
* Sets whether the sampler configuration is modified. |
525 |
|
*/ |
526 |
|
public void setModified(boolean b); |
527 |
|
|
528 |
|
/** Resets the model. */ |
529 |
|
public void reset(); |
530 |
} |
} |