13
0

Implement basic AU parameter-printing

(don't leave buf uninitialized)
This commit is contained in:
Robin Gareus 2017-05-25 13:36:33 +02:00
parent 63a71c597a
commit ae4b6316f1

View File

@ -2016,9 +2016,16 @@ AUPlugin::describe_parameter (Evoral::Parameter param)
}
void
AUPlugin::print_parameter (uint32_t /*param*/, char* /*buf*/, uint32_t /*len*/) const
AUPlugin::print_parameter (uint32_t param, char* buf, uint32_t len) const
{
// NameValue stuff here
if (buf && len) {
if (param < parameter_count()) {
snprintf (buf, len, "%.3f", get_parameter (param));
} else {
strcat (buf, "0");
}
}
}
bool