Skip to content

Commit

Permalink
[vst3] Update to latest SDK, reenable for mingw builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jun 16, 2024
1 parent f36e3e5 commit aef6e50
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/vst3/public.sdk
Submodule public.sdk updated 610 files
2 changes: 1 addition & 1 deletion ci/mingw.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cmake -S "$SCORE_DIR" -B build \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=install \
-DSCORE_DISABLED_PLUGINS="score-plugin-vst3;score-plugin-jit;score-plugin-faust" \
-DSCORE_DISABLED_PLUGINS="score-plugin-jit;score-plugin-faust" \
-DCMAKE_CXX_FLAGS="-Wa,-mbig-obj $CXX_ADDITIONAL_FLAGS" \
-DCMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS=1 \
-DCMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS=1 \
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/score-plugin-vst3/Vst3/Plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ class Model;
inline QString fromString(const Steinberg::Vst::String128& str)
{
#if defined(_WIN32)
return QString::fromWCharArray(str);
return [] <typename T>(const T& str) {
using char_type = std::decay_t<decltype(str[0])>;
if constexpr(std::is_same_v<char_type, char16_t>)
return QString::fromUtf16(str);
else
return QString::fromWCharArray(str);
}(str);
#else
return QString::fromUtf16(str);
#endif
Expand Down

0 comments on commit aef6e50

Please sign in to comment.