Audacity 3.2.0
Typedefs | Functions
VSTWrapper.cpp File Reference
#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"
Include dependency graph for VSTWrapper.cpp:

Go to the source code of this file.

Typedefs

typedef AEffect *(* vstPluginMain) (audioMasterCallback audioMaster)
 

Functions

static float reinterpretAsFloat (uint32_t x)
 
static uint32_t reinterpretAsUint32 (float f)
 

Typedef Documentation

◆ vstPluginMain

typedef AEffect *(* vstPluginMain) (audioMasterCallback audioMaster)

Definition at line 57 of file VSTWrapper.cpp.

Function Documentation

◆ 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().

Here is the caller graph for this function:

◆ 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().

Here is the caller graph for this function: