-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replacing insufficient VST3 SDK conversion with proper version. #312
Conversation
src/wrapasvst3.cpp
Outdated
|
||
auto src = reinterpret_cast<const uint8_t*>(utf8string); | ||
size_t pos = 0; | ||
while (src[pos] && (targetpos < (targetsize - 1))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(targetsize -2)
because a character and NUL must have room.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks fine to me. The only question is are we sure Steinberg::char16
and uint16_t
are always the same type.
I would be tempted to add somewhere
static_assert(std::is_same_v<Steinberg::char16, uint16_t>);
just in case an API shifts underneath us. But glad to hear why we don't need that too!
The parameter names were displayed correctly when I tried building with the code here!! Please continue with the parameter values as well! Once again, thank you all for working on this problem! |
Just checked in that values and bus names are also correctly converted. |
see issue #305