mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
LGPL'd SMPTE code and moved in to libardour_cp; Juggled control_protocol dir layout to be the same as other libs; git-svn-id: svn://localhost/ardour2/trunk@610 d708f5d6-7413-0410-9779-e7cbd77b26cf
30 lines
756 B
C++
30 lines
756 B
C++
|
|
#include <ardour/session.h>
|
|
#include <control_protocol/control_protocol.h>
|
|
#include <generic_midi/generic_midi_control_protocol.h>
|
|
#include <transport/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);
|
|
}
|
|
}
|
|
}
|
|
|