/[svn]/jsampler/trunk/src/org/jsampler/SamplerModel.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/SamplerModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1143 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1204 by iliev, Thu May 24 21:43:45 2007 UTC
# Line 1  Line 1 
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   *   *
# Line 119  public interface SamplerModel { Line 119  public interface SamplerModel {
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.
# Line 131  public interface SamplerModel { Line 131  public interface SamplerModel {
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.
# Line 145  public interface SamplerModel { Line 145  public interface SamplerModel {
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.
# Line 167  public interface SamplerModel { Line 167  public interface SamplerModel {
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.
# Line 179  public interface SamplerModel { Line 179  public interface SamplerModel {
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.
# Line 200  public interface SamplerModel { Line 200  public interface SamplerModel {
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.
# Line 255  public interface SamplerModel { Line 255  public interface SamplerModel {
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();
# Line 311  public interface SamplerModel { Line 311  public interface SamplerModel {
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>.
# Line 319  public interface SamplerModel { Line 319  public interface SamplerModel {
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.
# Line 349  public interface SamplerModel { Line 349  public interface SamplerModel {
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.

Legend:
Removed from v.1143  
changed lines
  Added in v.1204

  ViewVC Help
Powered by ViewVC