mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Use getParameterText to respond to AU's kAudioUnitProperty_ParameterStringFromValue request when using the legacy parameter system
This commit is contained in:
parent
4097fab06c
commit
d0c238d41d
1 changed files with 7 additions and 2 deletions
|
|
@ -483,9 +483,14 @@ public:
|
|||
String text;
|
||||
|
||||
if (AudioProcessorParameter* param = juceFilter->getParameters() [paramID])
|
||||
text = param->getText ((float) *(pv->inValue), 0);
|
||||
text = param->getText (value, 0);
|
||||
else
|
||||
text = String (value);
|
||||
{
|
||||
if (value == juceFilter->getParameter (paramID))
|
||||
text = juceFilter->getParameterText (paramID);
|
||||
else
|
||||
text = (String) value;
|
||||
}
|
||||
|
||||
pv->outString = text.toCFString();
|
||||
return noErr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue