|
DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
|
Serializes key/value parameters into a versioned blob. More...
#include <StateBlob.h>
Public Member Functions | |
| StateWriter (uint32_t processorId, uint16_t processorVersion) | |
| void | write (const char *key, float value) |
| Writes a float parameter. | |
| void | write (const char *key, int32_t value) |
| Writes an integer parameter (enums, counts, modes). | |
| void | write (const char *key, bool value) |
| Writes a boolean parameter. | |
| void | write (const char *key, const std::vector< uint8_t > &nested) |
| Writes a nested blob (composite processors: bands, slots...). | |
| std::vector< uint8_t > | blob () const |
| Finalizes and returns the blob. | |
Serializes key/value parameters into a versioned blob.
Definition at line 52 of file StateBlob.h.
|
inline |
| processorId | FOURCC-style identity of the processor type. |
| processorVersion | Schema version of that processor's state. |
Definition at line 59 of file StateBlob.h.
|
inline |
Finalizes and returns the blob.
Definition at line 105 of file StateBlob.h.
|
inline |
Writes a boolean parameter.
Definition at line 85 of file StateBlob.h.
|
inline |
Writes a nested blob (composite processors: bands, slots...).
Definition at line 91 of file StateBlob.h.
|
inline |
Writes a float parameter.
Definition at line 71 of file StateBlob.h.
|
inline |
Writes an integer parameter (enums, counts, modes).
Definition at line 79 of file StateBlob.h.