Skip to content
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

Merged
merged 6 commits into from
Sep 26, 2024

Conversation

defiantnerd
Copy link
Collaborator

see issue #305


auto src = reinterpret_cast<const uint8_t*>(utf8string);
size_t pos = 0;
while (src[pos] && (targetpos < (targetsize - 1)))
Copy link
Collaborator Author

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.

Copy link
Collaborator

@baconpaul baconpaul left a 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!

@lewloiwc
Copy link

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!

@defiantnerd
Copy link
Collaborator Author

Just checked in that values and bus names are also correctly converted.

@defiantnerd defiantnerd merged commit b3d017f into free-audio:next Sep 26, 2024
19 checks passed
@defiantnerd defiantnerd deleted the utf8_utf16 branch September 26, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants