UF8: parameterize the device name and pass to MackieControlProtocol

This commit is contained in:
Ben Loftis 2023-08-26 17:28:47 -05:00
parent 845600b261
commit 8fd8eaa01d
4 changed files with 11 additions and 12 deletions

View file

@ -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,