3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2013 Christian Schoenebeck * |
* Copyright (C) 2005 - 2014 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
532 |
} |
} |
533 |
|
|
534 |
// inform engine channel about this connection |
// inform engine channel about this connection |
535 |
pEngineChannel->Connect(this, MidiChannel); |
pEngineChannel->Connect(this); |
536 |
|
if (pEngineChannel->MidiChannel() != MidiChannel) |
537 |
|
pEngineChannel->SetMidiChannel(MidiChannel); |
538 |
|
|
539 |
// mark engine channel as changed |
// mark engine channel as changed |
540 |
pEngineChannel->StatusChanged(true); |
pEngineChannel->StatusChanged(true); |
567 |
catch(...) { /* NOOP */ } |
catch(...) { /* NOOP */ } |
568 |
|
|
569 |
// inform engine channel about the disconnection (if there is one) |
// inform engine channel about the disconnection (if there is one) |
570 |
if (bChannelFound) pEngineChannel->DisconnectMidiInputPort(); |
if (bChannelFound) pEngineChannel->Disconnect(this); |
571 |
|
|
572 |
// mark engine channel as changed |
// mark engine channel as changed |
573 |
pEngineChannel->StatusChanged(true); |
pEngineChannel->StatusChanged(true); |