|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 55 of file scheduler.hpp.
#include <scheduler.hpp>
Public Member Functions | |
| Scheduler (const uint16_t(÷rs)[Slots]) | |
| bool | subscribe (Stage stage, uint8_t slot, TickFn fn, void *context) |
| Add a subscriber. Returns false if full, the slot is out of range, or fn is null. | |
| template<typename T , void(T::*)(uint32_t) Method> | |
| bool | subscribe (Stage stage, uint8_t slot, T &object) |
Subscribe a member void T::method(uint32_t elapsed_samples). | |
| void | run (uint32_t sample_clock) |
| uint8_t | subscriber_count () const |
| uint16_t | divider (uint8_t slot) const |
Static Public Member Functions | |
| static constexpr uint8_t | slots () |
| static constexpr uint8_t | capacity () |
|
inlineexplicit |
| dividers | Base ticks per run, per slot (0 is treated as 1). |
Definition at line 61 of file scheduler.hpp.
|
inline |
Add a subscriber. Returns false if full, the slot is out of range, or fn is null.
Definition at line 68 of file scheduler.hpp.
Referenced by sbl::control::Scheduler< Slots, Capacity >::subscribe().
|
inline |
Subscribe a member void T::method(uint32_t elapsed_samples).
Definition at line 76 of file scheduler.hpp.
References sbl::control::Scheduler< Slots, Capacity >::subscribe().
|
inline |
One base tick. sample_clock is the audio frame count (wrapping). The first call establishes the baseline: every slot runs, told 0.
Definition at line 84 of file scheduler.hpp.
References sbl::control::kStageCount.
|
inline |
Definition at line 113 of file scheduler.hpp.
|
inline |
Definition at line 114 of file scheduler.hpp.
|
inlinestaticconstexpr |
Definition at line 115 of file scheduler.hpp.
|
inlinestaticconstexpr |
Definition at line 116 of file scheduler.hpp.