summaryrefslogtreecommitdiff
path: root/drumgizmo/jackclient.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-07-13 11:25:59 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-07-13 11:25:59 +0200
commit633bac9e82aef192a803666aaf3d3dcff920ac0c (patch)
treeb4b253162c0dcdbace27807e11e5915ebce1cfab /drumgizmo/jackclient.h
parent7557e5d1713337f4acc3f531e5b88a1195476eec (diff)
Use the latency reported by the engine in the jack and wavfile output modules.
Diffstat (limited to 'drumgizmo/jackclient.h')
-rw-r--r--drumgizmo/jackclient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drumgizmo/jackclient.h b/drumgizmo/jackclient.h
index 82cc0ed..83e5339 100644
--- a/drumgizmo/jackclient.h
+++ b/drumgizmo/jackclient.h
@@ -40,6 +40,7 @@ class JackProcess
public:
virtual ~JackProcess();
virtual void process(jack_nframes_t num_frames) = 0;
+ virtual void jackLatencyCallback(jack_latency_callback_mode_t mode) {}
};
// --------------------------------------------------------------------
@@ -78,6 +79,8 @@ private:
bool is_active;
int process(jack_nframes_t num_frames);
+ void jackLatencyCallback(jack_latency_callback_mode_t mode);
static int wrapJackProcess(jack_nframes_t nframes, void* arg);
+ static void latencyCallback(jack_latency_callback_mode_t mode, void* arg);
};