mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
UF8: parameterize the device name and pass to MackieControlProtocol
This commit is contained in:
parent
845600b261
commit
8fd8eaa01d
4 changed files with 11 additions and 12 deletions
|
|
@ -34,13 +34,15 @@ using namespace std;
|
|||
using namespace ArdourSurface;
|
||||
using namespace ArdourSurface::MACKIE_NAMESPACE;
|
||||
|
||||
#define PROTOCOL_NAME ("Mackie")
|
||||
|
||||
static ControlProtocol*
|
||||
new_mackie_protocol (Session* s)
|
||||
{
|
||||
MackieControlProtocol* mcp = 0;
|
||||
|
||||
try {
|
||||
mcp = new MackieControlProtocol (*s);
|
||||
mcp = new MackieControlProtocol (*s, PROTOCOL_NAME);
|
||||
/* do not set active here - wait for set_state() */
|
||||
}
|
||||
catch (exception & e) {
|
||||
|
|
@ -65,9 +67,8 @@ delete_mackie_protocol (ControlProtocol* cp)
|
|||
}
|
||||
}
|
||||
|
||||
// Field names commented out by JE - 06-01-2010
|
||||
static ControlProtocolDescriptor mackie_descriptor = {
|
||||
/* name */ "Mackie",
|
||||
/* name */ PROTOCOL_NAME,
|
||||
/* id */ "uri://ardour.org/surfaces/mackie:0",
|
||||
/* module */ 0,
|
||||
/* available */ 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue