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

Annotation of /linuxsampler/trunk/src/drivers/midi/MidiInputDevicePlugin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1858 - (hide annotations) (download) (as text)
Sun Mar 8 09:57:19 2009 UTC (15 years, 1 month ago) by persson
File MIME type: text/x-c++hdr
File size: 2949 byte(s)
* optimized the DSSI plugin: all plugin instances now share the same
  disk streaming buffers
* added support for the "fine tune" and "pitch bend range"
  instrument-level gig parameters
* fixed minor artifacts in pitch bend handling

1 persson 1777 /***************************************************************************
2     * *
3 persson 1858 * Copyright (C) 2008 - 2009 Andreas Persson *
4 persson 1777 * *
5     * 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 *
7     * the Free Software Foundation; either version 2 of the License, or *
8     * (at your option) any later version. *
9     * *
10     * This program is distributed in the hope that it will be useful, *
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13     * GNU General Public License for more details. *
14     * *
15     * You should have received a copy of the GNU General Public License *
16     * along with this program; if not, write to the Free Software *
17     * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
18     * MA 02110-1301 USA *
19     ***************************************************************************/
20    
21     #ifndef LS_MIDIINPUTDEVICEPLUGIN_H
22     #define LS_MIDIINPUTDEVICEPLUGIN_H
23    
24     #include "MidiInputDevice.h"
25    
26     namespace LinuxSampler {
27    
28     /** Plugin MIDI input driver
29     *
30     * Implements MIDI input when LinuxSampler is running as a plugin.
31     *
32     * The plugin implementation is given access to the MidiInputPort,
33     * to which MIDI events can be dispatched.
34     */
35     class MidiInputDevicePlugin : public MidiInputDevice {
36     public:
37     MidiInputDevicePlugin(std::map<String, DeviceCreationParameter*> Parameters,
38     void* pSampler);
39     ~MidiInputDevicePlugin();
40    
41     /**
42     * MIDI Port implementation for the plugin MIDI input driver.
43     */
44     class MidiInputPortPlugin : public MidiInputPort {
45     protected:
46 persson 1858 MidiInputPortPlugin(MidiInputDevicePlugin* pDevice, int portNumber);
47 persson 1777 friend class MidiInputDevicePlugin;
48     };
49    
50     // derived abstract methods from class 'MidiInputDevice'
51     void Listen();
52     void StopListen();
53     String Driver();
54     static String Name();
55     static String Version();
56     static String Description();
57     MidiInputPort* CreateMidiPort();
58    
59     /**
60     * Returns the MIDI port to which events can be dispatched.
61     *
62     * @returns MIDI port
63     */
64     MidiInputPort* Port() {
65     return Ports[0];
66     }
67 persson 1858
68     static void DeleteMidiPort(MidiInputPort* pPort);
69 persson 1777 };
70     }
71    
72     #endif

  ViewVC Help
Powered by ViewVC