proper port names

This commit is contained in:
Gordon JC Pearce 2024-08-29 22:12:52 +01:00
parent 98df0d307d
commit 43f6d53a56

View File

@ -106,6 +106,11 @@ float BarrVerb::getParameterValue(uint32_t index) const {
void BarrVerb::initAudioPort(bool input, uint32_t index, AudioPort &port) { void BarrVerb::initAudioPort(bool input, uint32_t index, AudioPort &port) {
port.groupId = kPortGroupStereo; port.groupId = kPortGroupStereo;
Plugin::initAudioPort(input, index, port); Plugin::initAudioPort(input, index, port);
if (input && index == 0) port.name="Left In";
if (input && index == 1) port.name="Right In";
if (!input && index == 0) port.name="Left Out";
if (!input && index == 1) port.name="Right Out";
} }
void BarrVerb::initProgramName(uint32_t index, String &programName) { void BarrVerb::initProgramName(uint32_t index, String &programName) {