--- jsampler/trunk/src/org/jsampler/DefaultSamplerModel.java 2007/11/01 19:25:10 1466 +++ jsampler/trunk/src/org/jsampler/DefaultSamplerModel.java 2007/11/03 13:14:31 1467 @@ -210,6 +210,17 @@ setAudioOutputDrivers(AudioOutputDriver[] drivers) { aoDrvS = drivers; } /** + * 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) { + return audioDeviceModels.get(index); + } + + /** * Gets the model of the audio device with ID deviceId. * @param deviceId The ID of the audio device whose model should be obtained. * @return The model of the specified audio device or null @@ -298,6 +309,16 @@ setMidiInputDrivers(MidiInputDriver[] drivers) { miDrvS = drivers; } /** + * 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) { + return midiDeviceModels.get(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 @@ -603,6 +624,17 @@ setEngines(SamplerEngine[] engines) { this.engines = engines; } /** + * 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) { + return channelModels.get(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