--- jsampler/trunk/src/org/jsampler/SamplerModel.java 2007/08/10 19:55:03 1285 +++ jsampler/trunk/src/org/jsampler/SamplerModel.java 2007/12/04 18:28:29 1545 @@ -113,6 +113,16 @@ */ public AudioOutputDriver[] getAudioOutputDrivers(); + + + /** + * Gets the model of the audio device at the specified position. + * @param index The position of the audio device to return. + * @return The model of the audio device at the specified position. + * @see #getAudioDeviceCount + */ + public AudioDeviceModel getAudioDevice(int index); + /** * Gets the model of the audio device with ID deviceId. * @param deviceId The ID of the audio device whose model should be obtained. @@ -162,6 +172,13 @@ public MidiInputDriver[] getMidiInputDrivers(); /** + * Gets the model of the MIDI device at the specified position. + * @param index The position of the MIDI device to return. + * @return The model of the MIDI device at the specified position. + */ + public MidiDeviceModel getMidiDevice(int index); + + /** * Gets the model of the MIDI device with ID deviceId. * @param deviceId The ID of the MIDI device whose model should be obtained. * @return The model of the specified MIDI device or null @@ -323,6 +340,14 @@ public SamplerChannelModel[] getChannels(); /** + * Gets the model of the sampler channel in the specified position. + * @param index The position of the channel to return. + * @return The model of the specified sampler channel. + * @see #getchannelCount + */ + public SamplerChannelModel getChannel(int index); + + /** * Gets the model of the sampler channel with ID channelId. * @param channelId The ID of the sampler channel whose model should be obtained. * @return The model of the specified sampler channel or null @@ -374,6 +399,13 @@ public void updateChannel(SamplerChannel channel); /** + * Schedules a new task for starting an instrument editor for editing + * the loaded instrument on the specified sampler channel. + * @param channelId The sampler channel number. + */ + public void editBackendInstrument(int channelId); + + /** * Determines whether there is at least one solo channel in the current list * of sampler channels. * @return true if there is at least one solo channel in the current list of @@ -401,6 +433,12 @@ public int getMutedBySoloChannelCount(); /** + * Gets the total number of active streams. + * @return The total number of active streams. + */ + public int getTotalStreamCount(); + + /** * Gets the total number of active voices. * @return The total number of active voices. */ @@ -436,6 +474,12 @@ public void resetBackend(); /** + * Updates the current number of active disk streams in the sampler. + * @param count The new number of active streams. + */ + public void updateActiveStreamsInfo(int count); + + /** * Updates the current and the maximum number of active voices in the sampler. * @param count The new number of active voices. * @param countMax The maximum number of active voices.