/[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 1857 by persson, Mon Sep 15 16:58:10 2008 UTC revision 1858 by persson, Sun Mar 8 09:57:19 2009 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2008 Andreas Persson                                    *   *   Copyright (C) 2008 - 2009 Andreas Persson                             *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   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 25  namespace LinuxSampler { Line 25  namespace LinuxSampler {
25  // *************** MidiInputPortPlugin ***************  // *************** MidiInputPortPlugin ***************
26  // *  // *
27    
28      MidiInputDevicePlugin::MidiInputPortPlugin::MidiInputPortPlugin(MidiInputDevicePlugin* pDevice) :      MidiInputDevicePlugin::MidiInputPortPlugin::MidiInputPortPlugin(MidiInputDevicePlugin* pDevice,
29          MidiInputPort(pDevice, 0) {                                                                      int portNumber) :
30            MidiInputPort(pDevice, portNumber) {
31      }      }
32    
33    
# Line 63  namespace LinuxSampler { Line 64  namespace LinuxSampler {
64      }      }
65    
66      String MidiInputDevicePlugin::Version() {      String MidiInputDevicePlugin::Version() {
67          String s = "$Revision: 1.1 $";          String s = "$Revision: 1.2 $";
68          return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword          return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword
69      }      }
70    
# Line 72  namespace LinuxSampler { Line 73  namespace LinuxSampler {
73      }      }
74    
75      MidiInputPort* MidiInputDevicePlugin::CreateMidiPort() {      MidiInputPort* MidiInputDevicePlugin::CreateMidiPort() {
76          return new MidiInputPortPlugin(this);          return new MidiInputPortPlugin(this, Ports.size());
77        }
78    
79        void MidiInputDevicePlugin::DeleteMidiPort(MidiInputPort* pPort) {
80            delete (MidiInputPortPlugin*)pPort;
81      }      }
82  }  }

Legend:
Removed from v.1857  
changed lines
  Added in v.1858

  ViewVC Help
Powered by ViewVC