#include "VSTWrapper.h"
#include <wx/log.h>
#include <wx/time.h>
#include <shlwapi.h>
#include <wx/osx/core/private.h>
#include <cstring>
#include "BasicUI.h"
#include "FileNames.h"
#include "XMLFileReader.h"
#include "Base64.h"
Go to the source code of this file.
◆ vstPluginMain
◆ reinterpretAsFloat()
static float reinterpretAsFloat |
( |
uint32_t |
x | ) |
|
|
static |
Definition at line 40 of file VSTWrapper.cpp.
41{
42 static_assert(sizeof(float) == sizeof(uint32_t), "Cannot reinterpret uint32_t to float since sizes are different.");
43 float f;
44 std::memcpy(&f, &x, sizeof(float));
45 return f;
46}
Referenced by VSTWrapper::LoadFXProgram().
◆ reinterpretAsUint32()
static uint32_t reinterpretAsUint32 |
( |
float |
f | ) |
|
|
static |
Definition at line 48 of file VSTWrapper.cpp.
49{
50 static_assert(sizeof(float) == sizeof(uint32_t), "Cannot reinterpret float to uint32_t since sizes are different.");
51
52 uint32_t x;
53 std::memcpy(&x, &f, sizeof(uint32_t));
54 return x;
55}
Referenced by VSTWrapper::SaveFXProgram().