Add time reset signal when transport relocates

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-29 23:27:30 +01:00
parent 3898ea976e
commit 9eb1583671
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 37 additions and 13 deletions

View file

@ -40,7 +40,7 @@ struct CardinalPluginContext : rack::Context {
uint32_t bufferSize;
double sampleRate;
float parameters[kModuleParameters];
bool playing;
bool playing, reset;
int32_t bar, beat, beatsPerBar;
double tick, tickClock, ticksPerBeat, ticksPerClock, ticksPerFrame;
Plugin* const plugin;
@ -49,6 +49,7 @@ struct CardinalPluginContext : rack::Context {
: bufferSize(p->getBufferSize()),
sampleRate(p->getSampleRate()),
playing(false),
reset(false),
bar(0),
beat(0),
beatsPerBar(0),