@@ -40,6 +40,63 @@ DistrhoPlugin3BandSplitter::DistrhoPlugin3BandSplitter()
4040// -----------------------------------------------------------------------
4141// Init
4242
43+ void DistrhoPlugin3BandSplitter::initAudioPort (bool input, uint32_t index, AudioPort& port)
44+ {
45+ port.hints = 0x0 ;
46+
47+ if (input)
48+ {
49+ switch (index)
50+ {
51+ case 0 :
52+ port.name = " Inpput Left" ;
53+ port.symbol = " in_left" ;
54+ break ;
55+ case 1 :
56+ port.name = " Input Right" ;
57+ port.symbol = " in_right" ;
58+ break ;
59+ }
60+ port.groupId = kPortGroupStereo ;
61+ }
62+ else
63+ {
64+ switch (index)
65+ {
66+ case 0 :
67+ port.name = " Output Left (Low)" ;
68+ port.symbol = " in_left_low" ;
69+ port.groupId = kPortGroupLow ;
70+ break ;
71+ case 1 :
72+ port.name = " Output Right (Low)" ;
73+ port.symbol = " in_right_low" ;
74+ port.groupId = kPortGroupLow ;
75+ break ;
76+ case 2 :
77+ port.name = " Output Left (Mid)" ;
78+ port.symbol = " in_left_mid" ;
79+ port.groupId = kPortGroupMid ;
80+ break ;
81+ case 3 :
82+ port.name = " Output Right (Mid)" ;
83+ port.symbol = " in_right_mid" ;
84+ port.groupId = kPortGroupMid ;
85+ break ;
86+ case 4 :
87+ port.name = " Output Left (High)" ;
88+ port.symbol = " in_left_high" ;
89+ port.groupId = kPortGroupHigh ;
90+ break ;
91+ case 5 :
92+ port.name = " Output Right (High)" ;
93+ port.symbol = " in_right_high" ;
94+ port.groupId = kPortGroupHigh ;
95+ break ;
96+ }
97+ }
98+ }
99+
43100void DistrhoPlugin3BandSplitter::initParameter (uint32_t index, Parameter& parameter)
44101{
45102 switch (index)
@@ -106,6 +163,25 @@ void DistrhoPlugin3BandSplitter::initParameter(uint32_t index, Parameter& parame
106163 }
107164}
108165
166+ void DistrhoPlugin3BandSplitter::initPortGroup (uint32_t groupId, PortGroup& portGroup)
167+ {
168+ switch (groupId)
169+ {
170+ case kPortGroupLow :
171+ portGroup.name = " Low" ;
172+ portGroup.symbol = " low" ;
173+ break ;
174+ case kPortGroupMid :
175+ portGroup.name = " Mid" ;
176+ portGroup.symbol = " mid" ;
177+ break ;
178+ case kPortGroupHigh :
179+ portGroup.name = " High" ;
180+ portGroup.symbol = " high" ;
181+ break ;
182+ }
183+ }
184+
109185void DistrhoPlugin3BandSplitter::initProgramName (uint32_t index, String& programName)
110186{
111187 if (index != 0 )
0 commit comments