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

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

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

revision 3053 by schoenebeck, Wed Jan 1 17:48:01 2014 UTC revision 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2008 - 2012 Andreas Persson                             *   *   Copyright (C) 2008 - 2012 Andreas Persson                             *
4     *   Copyright (C) 2014 - 2016 Christian Schoenebeck                       *
5   *                                                                         *   *                                                                         *
6   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
7   *   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 83  namespace LinuxSampler { Line 84  namespace LinuxSampler {
84      }      }
85    
86      MidiInputPort* MidiInputDevicePlugin::CreateMidiPort() {      MidiInputPort* MidiInputDevicePlugin::CreateMidiPort() {
87          return new MidiInputPortPlugin(this, Ports.size());          return new MidiInputPortPlugin(this, (int)Ports.size());
88      }      }
89    
90      void MidiInputDevicePlugin::AddMidiPort() {      void MidiInputDevicePlugin::AddMidiPort() {
91          static_cast<ParameterPortsPlugin*>(          static_cast<ParameterPortsPlugin*>(
92              Parameters["PORTS"])->ForceSetValue(Ports.size() + 1);              Parameters["PORTS"])->ForceSetValue((int)Ports.size() + 1);
93      }      }
94    
95      void MidiInputDevicePlugin::RemoveMidiPort(MidiInputPort* pPort) {      void MidiInputDevicePlugin::RemoveMidiPort(MidiInputPort* pPort) {
# Line 109  namespace LinuxSampler { Line 110  namespace LinuxSampler {
110    
111          // delete the last port          // delete the last port
112          static_cast<ParameterPortsPlugin*>(          static_cast<ParameterPortsPlugin*>(
113              Parameters["PORTS"])->ForceSetValue(Ports.size() - 1);              Parameters["PORTS"])->ForceSetValue((int)Ports.size() - 1);
114      }      }
115    
116      bool MidiInputDevicePlugin::isAutonomousDevice() {      bool MidiInputDevicePlugin::isAutonomousDevice() {

Legend:
Removed from v.3053  
changed lines
  Added in v.3054

  ViewVC Help
Powered by ViewVC