Implement basic AU parameter-printing
(don't leave buf uninitialized)
This commit is contained in:
parent
63a71c597a
commit
ae4b6316f1
@ -2016,9 +2016,16 @@ AUPlugin::describe_parameter (Evoral::Parameter param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
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
|
// NameValue stuff here
|
||||||
|
if (buf && len) {
|
||||||
|
if (param < parameter_count()) {
|
||||||
|
snprintf (buf, len, "%.3f", get_parameter (param));
|
||||||
|
} else {
|
||||||
|
strcat (buf, "0");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user