Hi, I’m trying to load the Ambience Reverb from Smart Electronix in my app and there seems to be a problem with creating the identifier.
When the code is in AudioUnitFormatHelpers osTypeToString it runs into this assert
[code] /* If you get an assertion here, then you’re trying to create a string from 8-bit data
that contains values greater than 127. These can NOT be correctly converted to unicode
because there’s no way for the String class to know what encoding was used to
create them. The source data could be UTF-8, ASCII or one of many local code-pages.
To get around this problem, you must be more explicit when you pass an ambiguous 8-bit
string to the String class - so for example if your source data is actually UTF-8,
you'd call String (CharPointer_UTF8 ("my utf8 string..")), and it would be able to
correctly convert the multi-byte characters to unicode. It's *highly* recommended that
you use UTF-8 with escape characters in your source code to represent extended characters,
because there's no other way to represent these strings in a way that isn't dependent on
the compiler, source code editor and platform.
*/
jassert (t == nullptr || CharPointer_ASCII::isValidString (t, (int) maxChars));[/code]
The plugin does load into logic and AU Lab. If you want to try it out, you can get the plugin here: