MCPcopy Create free account
hub / github.com/DISTRHO/DPF / initAudioPort

Method initAudioPort

distrho/src/DistrhoPlugin.cpp:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 * Init */
162
163void Plugin::initAudioPort(bool input, uint32_t index, AudioPort& port)
164{
165 if (port.hints & kAudioPortIsCV)
166 {
167 port.name = input ? "CV Input " : "CV Output ";
168 port.name += String(index+1);
169 port.symbol = input ? "cv_in_" : "cv_out_";
170 port.symbol += String(index+1);
171 }
172 else
173 {
174 port.name = input ? "Audio Input " : "Audio Output ";
175 port.name += String(index+1);
176 port.symbol = input ? "audio_in_" : "audio_out_";
177 port.symbol += String(index+1);
178 }
179}
180
181void Plugin::initParameter(uint32_t, Parameter&) {}
182

Callers 1

PluginExporterFunction · 0.80

Calls 1

StringFunction · 0.85

Tested by

no test coverage detected