From 61b86f7689238df5bfdfa71b6c6a229605a544a3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Dec 2007 19:07:52 +0000 Subject: Fix compile oops with --enable-debug. git-svn-id: http://svn.drobilla.net/lad/ingen@973 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/JackAudioDriver.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libs/engine') diff --git a/src/libs/engine/JackAudioDriver.cpp b/src/libs/engine/JackAudioDriver.cpp index 55a18b12..9d5a06b9 100644 --- a/src/libs/engine/JackAudioDriver.cpp +++ b/src/libs/engine/JackAudioDriver.cpp @@ -289,11 +289,13 @@ JackAudioDriver::_process_cb(jack_nframes_t nframes) // Jack can elect to not call this function for a cycle, if overloaded // FIXME: this doesn't make sense, and the start time isn't used anyway const jack_nframes_t start_of_current_cycle = jack_last_frame_time(_client); - //const jack_nframes_t start_of_last_cycle = start_of_current_cycle - nframes; // FIXME: maybe not.. - const jack_nframes_t end_of_current_cycle = start_of_current_cycle + nframes; - // FIXME: ditto + const jack_nframes_t end_of_current_cycle = start_of_current_cycle + nframes; +#ifndef NDEBUG + // FIXME: support changing cycle length + const jack_nframes_t start_of_last_cycle = start_of_current_cycle - nframes; assert(start_of_current_cycle - start_of_last_cycle == nframes); +#endif _transport_state = jack_transport_query(_client, &_position); -- cgit v1.2.1