--- linuxsampler/trunk/src/audiodriver/AudioOutputDeviceJack.cpp 2004/04/26 17:15:51 53 +++ linuxsampler/trunk/src/audiodriver/AudioOutputDeviceJack.cpp 2004/05/07 22:36:45 65 @@ -2,7 +2,7 @@ * * * LinuxSampler - modular, streaming capable sampler * * * - * Copyright (C) 2003 by Benno Senoner and Christian Schoenebeck * + * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -41,7 +41,7 @@ * @throws AudioOutputException on error * @see AcquireChannels() */ - AudioOutputDeviceJack::AudioOutputDeviceJack(String* AutoConnectPortIDs, uint AutoConnectPorts) : AudioOutputDevice() { + AudioOutputDeviceJack::AudioOutputDeviceJack(String* AutoConnectPortIDs, uint AutoConnectPorts) : AudioOutputDevice(AudioOutputDevice::type_jack) { if ((hJackClient = jack_client_new("LinuxSampler")) == 0) throw AudioOutputException("Seems Jack server not running."); @@ -110,7 +110,7 @@ void AudioOutputDeviceJack::AcquireChannels(uint uiChannels) { if (uiChannels > this->Channels.size()) { - for (int c = uiChannels; c < uiChannels; c++) { + for (int c = this->Channels.size(); c < uiChannels; c++) { // create new jack output port std::stringstream portid; portid << "LinuxSampler:" << c; jack_port_t* newport;