mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 20:40:11 +02:00
Move TChar* -> std::u16string conversion to base.h
We're going to need it for VST3 events.
This commit is contained in:
@@ -19,6 +19,16 @@
|
||||
|
||||
#include "base.h"
|
||||
|
||||
std::u16string tchar_string_to_u16string(const Steinberg::Vst::TChar* string) {
|
||||
#ifdef __WINE__
|
||||
// This is great, thanks Steinberg
|
||||
static_assert(sizeof(Steinberg::Vst::TChar) == sizeof(char16_t));
|
||||
return std::u16string(reinterpret_cast<const char16_t*>(string));
|
||||
#else
|
||||
return std::u16string(static_cast<const char16_t*>(string));
|
||||
#endif
|
||||
}
|
||||
|
||||
UniversalTResult::UniversalTResult() : universal_result(Value::kResultFalse) {}
|
||||
|
||||
UniversalTResult::UniversalTResult(tresult native_result)
|
||||
|
||||
Reference in New Issue
Block a user