@@ -399,6 +399,14 @@ struct {identifier} : Module {{""" | |||||
source += f""" | source += f""" | ||||
configParam({c['name']}_PARAM, 0.f, 1.f, 0.f, "");""" | configParam({c['name']}_PARAM, 0.f, 1.f, 0.f, "");""" | ||||
for c in components['inputs']: | |||||
source += f""" | |||||
configInput({c['name']}_INPUT, "");""" | |||||
for c in components['outputs']: | |||||
source += f""" | |||||
configOutput({c['name']}_OUTPUT, "");""" | |||||
source += """ | source += """ | ||||
} | } | ||||
@@ -20,8 +20,12 @@ struct PortInfo { | |||||
std::string description; | std::string description; | ||||
virtual ~PortInfo() {} | virtual ~PortInfo() {} | ||||
virtual std::string getName() {return name;} | |||||
virtual std::string getDescription() {return description;} | |||||
virtual std::string getName() { | |||||
return name; | |||||
} | |||||
virtual std::string getDescription() { | |||||
return description; | |||||
} | |||||
}; | }; | ||||