summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-12-14 19:07:52 +0000
committerDavid Robillard <d@drobilla.net>2007-12-14 19:07:52 +0000
commit61b86f7689238df5bfdfa71b6c6a229605a544a3 (patch)
tree6a29cc4729aa6b86b725d7044715f211e8b915f3 /src
parente72dbd02e5eae0b9f4896bbc489253a548fb6ee8 (diff)
downloadingen-61b86f7689238df5bfdfa71b6c6a229605a544a3.tar.gz
ingen-61b86f7689238df5bfdfa71b6c6a229605a544a3.tar.bz2
ingen-61b86f7689238df5bfdfa71b6c6a229605a544a3.zip
Fix compile oops with --enable-debug.
git-svn-id: http://svn.drobilla.net/lad/ingen@973 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/libs/engine/JackAudioDriver.cpp8
1 files changed, 5 insertions, 3 deletions
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);