diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-07-13 16:33:11 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-07-13 17:28:11 +0200 |
commit | 32606894c67e6be27ba853a8bc3e97c808c14987 (patch) | |
tree | f31c9d1bc08e2095b2cd724b5f0f0a27526c5a01 /drumgizmo/jackclient.h | |
parent | d71485534d3a683cae4993815f59ff68263a6751 (diff) |
Introduce output engine isFreewheeling method.
Diffstat (limited to 'drumgizmo/jackclient.h')
-rw-r--r-- | drumgizmo/jackclient.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drumgizmo/jackclient.h b/drumgizmo/jackclient.h index 83e5339..f769ab4 100644 --- a/drumgizmo/jackclient.h +++ b/drumgizmo/jackclient.h @@ -72,15 +72,19 @@ public: std::size_t getBufferSize() const; std::size_t getSampleRate() const; + bool isFreewheeling() const; private: jack_client_t* client; std::set<JackProcess*> processes; bool is_active; + bool is_freewheeling; int process(jack_nframes_t num_frames); void jackLatencyCallback(jack_latency_callback_mode_t mode); + void jackFreewheelCallback(bool is_freewheeling); static int wrapJackProcess(jack_nframes_t nframes, void* arg); static void latencyCallback(jack_latency_callback_mode_t mode, void* arg); + static void freewheelCallback(int is_freewheeling, void* arg); }; |