Browse Source

Set port group information for JACK audio/cv ports

Signed-off-by: falkTX <falktx@falktx.com>
pull/293/head
falkTX 4 years ago
parent
commit
fc2930cbcf
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 11 additions and 0 deletions
  1. +1
    -0
      distrho/src/DistrhoPluginInternal.hpp
  2. +10
    -0
      distrho/src/DistrhoPluginJACK.cpp

+ 1
- 0
distrho/src/DistrhoPluginInternal.hpp View File

@@ -70,6 +70,7 @@ static void fillInPredefinedPortGroupData(const uint32_t groupId, PortGroup& por
break;
}
}

// -----------------------------------------------------------------------
// Plugin private data



+ 10
- 0
distrho/src/DistrhoPluginJACK.cpp View File

@@ -38,6 +38,10 @@
# define JACK_METADATA_PRETTY_NAME "http://jackaudio.org/metadata/pretty-name"
#endif

#ifndef JACK_METADATA_PORT_GROUP
# define JACK_METADATA_PORT_GROUP "http://jackaudio.org/metadata/port-group"
#endif

#ifndef JACK_METADATA_SIGNAL_TYPE
# define JACK_METADATA_SIGNAL_TYPE "http://jackaudio.org/metadata/signal-type"
#endif
@@ -588,6 +592,12 @@ private:
jackbridge_set_property(fClient, uuid, JACK_METADATA_ORDER, strBuf, "http://www.w3.org/2001/XMLSchema#integer");
}

if (port.groupId != kPortGroupNone)
{
const PortGroupWithId& portGroup(fPlugin.getPortGroupById(port.groupId));
jackbridge_set_property(fClient, uuid, JACK_METADATA_PORT_GROUP, portGroup.name, "text/plain");
}

if (port.hints & kAudioPortIsCV)
{
jackbridge_set_property(fClient, uuid, JACK_METADATA_SIGNAL_TYPE, "CV", "text/plain");


Loading…
Cancel
Save