FastLED 3.9.15
Loading...
Searching...
No Matches

◆ hexwave_engine_destroy()

void fl::third_party::hexwave::hexwave_engine_destroy ( HexWaveEngine * engine)

Destroy a HexWaveEngine and free its resources.

Parameters
enginePointer to engine to destroy

Definition at line 320 of file stb_hexwave.cpp.hpp.

321{
322 if (engine == nullptr)
323 return;
324
325 #ifndef FL_STB_HEXWAVE_NO_ALLOCATION
326 if (engine->ownsBuffers) {
327 free(engine->blep);
328 free(engine->blamp);
329 }
330 free(engine);
331 #endif
332}
float * blep
Band-limited step table.
bool ownsBuffers
True if engine allocated blep/blamp (vs user-provided)
float * blamp
Band-limited ramp table.

References FL_NOEXCEPT, and free().

Referenced by hexwave_init(), and hexwave_shutdown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: