91 |
} |
} |
92 |
|
|
93 |
// connect new engine channel |
// connect new engine channel |
|
if (pMidiInputPort) pMidiInputPort->Connect(pNewEngineChannel, GetMidiInputChannel()); |
|
94 |
if (pAudioOutputDevice) { |
if (pAudioOutputDevice) { |
95 |
pNewEngineChannel->Connect(pAudioOutputDevice); |
pNewEngineChannel->Connect(pAudioOutputDevice); |
96 |
pAudioOutputDevice->Connect(pNewEngineChannel->GetEngine()); |
pAudioOutputDevice->Connect(pNewEngineChannel->GetEngine()); |
97 |
} |
} |
98 |
|
if (pMidiInputPort) pMidiInputPort->Connect(pNewEngineChannel, GetMidiInputChannel()); |
99 |
pEngineChannel = pNewEngineChannel; |
pEngineChannel = pNewEngineChannel; |
100 |
|
|
101 |
// from now on get MIDI device and port from EngineChannel object |
// from now on get MIDI device and port from EngineChannel object |