--- linuxsampler/trunk/src/Sampler.cpp 2006/02/26 13:00:08 840 +++ linuxsampler/trunk/src/Sampler.cpp 2006/03/19 16:38:22 846 @@ -91,11 +91,11 @@ } // connect new engine channel - if (pMidiInputPort) pMidiInputPort->Connect(pNewEngineChannel, GetMidiInputChannel()); if (pAudioOutputDevice) { pNewEngineChannel->Connect(pAudioOutputDevice); pAudioOutputDevice->Connect(pNewEngineChannel->GetEngine()); } + if (pMidiInputPort) pMidiInputPort->Connect(pNewEngineChannel, GetMidiInputChannel()); pEngineChannel = pNewEngineChannel; // from now on get MIDI device and port from EngineChannel object