mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 19:37:45 +01:00
b) basic support for Frontier Design Tranzport c) probably broke some aspect of existing generic MIDI feedback git-svn-id: svn://localhost/trunk/ardour2@441 d708f5d6-7413-0410-9779-e7cbd77b26cf
30 lines
737 B
C++
30 lines
737 B
C++
|
|
#include <ardour/session.h>
|
|
#include <ardour/control_protocol.h>
|
|
#include <ardour/generic_midi_control_protocol.h>
|
|
#include <ardour/tranzport_control_protocol.h>
|
|
|
|
using namespace ARDOUR;
|
|
|
|
void
|
|
Session::initialize_control ()
|
|
{
|
|
GenericMidiControlProtocol* midi_protocol = new GenericMidiControlProtocol (*this);
|
|
|
|
if (midi_protocol->init() == 0) {
|
|
control_protocols.push_back (midi_protocol);
|
|
}
|
|
|
|
if (Config->get_use_tranzport()) {
|
|
cerr << "Creating new tranzport control" << endl;
|
|
|
|
TranzportControlProtocol* tranzport_protocol = new TranzportControlProtocol (*this);
|
|
|
|
cerr << "Initializing new tranzport control" << endl;
|
|
|
|
if (tranzport_protocol->init() == 0) {
|
|
control_protocols.push_back (tranzport_protocol);
|
|
}
|
|
}
|
|
}
|
|
|