mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
a) dynamically loadable control surface support
b) move tranzport and generic midi into separate dirs under "surfaces" git-svn-id: svn://localhost/trunk/ardour2@442 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f7c82c6911
commit
9ae0f6cbee
20 changed files with 356 additions and 293 deletions
34
libs/surfaces/generic_midi/interface.cc
Normal file
34
libs/surfaces/generic_midi/interface.cc
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#include <ardour/control_protocol.h>
|
||||
|
||||
#include "generic_midi_control_protocol.h"
|
||||
|
||||
using namespace ARDOUR;
|
||||
|
||||
ControlProtocol*
|
||||
new_generic_midi_protocol (ControlProtocolDescriptor* descriptor, Session* s)
|
||||
{
|
||||
return new GenericMidiControlProtocol (*s);
|
||||
}
|
||||
|
||||
void
|
||||
delete_generic_midi_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol* cp)
|
||||
{
|
||||
delete cp;
|
||||
}
|
||||
|
||||
static ControlProtocolDescriptor generic_midi_descriptor = {
|
||||
name : "Generic MIDI",
|
||||
ptr : 0,
|
||||
module : 0,
|
||||
initialize : new_generic_midi_protocol,
|
||||
destroy : delete_generic_midi_protocol
|
||||
};
|
||||
|
||||
|
||||
extern "C" {
|
||||
ControlProtocolDescriptor*
|
||||
protocol_descriptor () {
|
||||
return &generic_midi_descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue