|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The control clock: the app's one control timebase. More...
The control clock: the app's one control timebase.
Clock<Source> reads a source with now() (ticks, wrapping at 2^32) and a constexpr TICKS_PER_SECOND, and adds what control code needs: elapsed ticks between two readings and the conversion of a time to ticks when the time is set, in 64-bit arithmetic so no rate truncates. The template is unit-tested over a fake source; target code uses the alias in target_clock.hpp, whose source is chosen per target at compile time.
The scheduler passes now() to run(); subscribers receive elapsed ticks. dsp/ never sees the clock; it counts frames in process(n).
Definition in file clock.hpp.
#include <cstdint>Go to the source code of this file.
Classes | |
| class | sbl::control::Clock< Source > |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::control |
| The control stack: scheduler, event queue, merge, CC mapping, calibration. | |