/[svn]/linuxsampler/trunk/src/drivers/midi/MidiInputPort.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/midi/MidiInputPort.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2499 by schoenebeck, Mon Mar 4 15:12:48 2013 UTC revision 2500 by schoenebeck, Fri Jan 10 12:20:05 2014 UTC
# Line 3  Line 3 
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  *
# Line 532  namespace LinuxSampler { Line 532  namespace LinuxSampler {
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);
# Line 565  namespace LinuxSampler { Line 567  namespace LinuxSampler {
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);

Legend:
Removed from v.2499  
changed lines
  Added in v.2500

  ViewVC Help
Powered by ViewVC