MCPcopy Create free account
hub / github.com/audacity/audacity / reinterpretAsUint32

Function reinterpretAsUint32

libraries/lib-vst/VSTWrapper.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static uint32_t reinterpretAsUint32(float f)
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}
56
57typedef AEffect *(*vstPluginMain)(audioMasterCallback audioMaster);
58

Callers 1

SaveFXProgramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected