mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +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;
|
String text;
|
||||||
|
|
||||||
if (AudioProcessorParameter* param = juceFilter->getParameters() [paramID])
|
if (AudioProcessorParameter* param = juceFilter->getParameters() [paramID])
|
||||||
text = param->getText ((float) *(pv->inValue), 0);
|
text = param->getText (value, 0);
|
||||||
else
|
else
|
||||||
text = String (value);
|
{
|
||||||
|
if (value == juceFilter->getParameter (paramID))
|
||||||
|
text = juceFilter->getParameterText (paramID);
|
||||||
|
else
|
||||||
|
text = (String) value;
|
||||||
|
}
|
||||||
|
|
||||||
pv->outString = text.toCFString();
|
pv->outString = text.toCFString();
|
||||||
return noErr;
|
return noErr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue