diff options
author | Robin Gareus <robin@gareus.org> | 2016-01-28 00:00:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-28 00:00:47 +0100 |
commit | d121e6bf15cbf6f07ec10f84968690046614435a (patch) | |
tree | 96d6fddae6662ea1dcef5eb4eea46105d54856c4 /libs/ardour/audio_unit.cc | |
parent | ec8cf4e4f58a7f2d69b479fb64cbdc13a8d3764f (diff) |
Fix AU port-name encoding.
This allows us to revert ec8cf4e4, maybe. After testing if
port-names are still properly displayed.
Diffstat (limited to 'libs/ardour/audio_unit.cc')
-rw-r--r-- | libs/ardour/audio_unit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 779bda5348..6cb5c2abd9 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -659,9 +659,9 @@ AUPlugin::discover_parameters () const CAAUParameter* param = param_info.GetParamInfo (d.id); const AudioUnitParameterInfo& info (param->ParamInfo()); - const int len = CFStringGetLength (param->GetName());; + const int len = CFStringGetLength (param->GetName()); char local_buffer[len*2]; - Boolean good = CFStringGetCString(param->GetName(),local_buffer,len*2,kCFStringEncodingMacRoman); + Boolean good = CFStringGetCString (param->GetName(), local_buffer ,len*2 , kCFStringEncodingUTF8); if (!good) { d.label = "???"; } else { |