How to get sample time and rate in the Module constructor?

(Leodardo) #1

As simple as that, I’ve surely haven’t slept enough to figure out the answer.
I should access the Engine internal somehow?

(Marc Boulé) #2

If you are in v0.6, it is: engineGetSampleRate() and engineGetSampleTime()
If you are in v1, it is: APP->engine->getSampleRate() and APP->engine->getSampleTime()

1 Like
(Leodardo) #3

Alright thanks, I forgot that we had the APP macro defined.