summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2006-09-01 02:58:33 +0000
committerTim Mayberry <mojofunk@gmail.com>2006-09-01 02:58:33 +0000
commitc1e584256584a7e8b33512b41060258a795b0c0e (patch)
tree54b573eb938b8ed386f0f8937da60f937302ee7c /libs/ardour/audioengine.cc
parent78e13c37f482552881c3b68ce08a80793df15152 (diff)
Moved test for jack_port_ensure_monitor from SConstruct into
libs/ardour/SConscript. Renamed define WITH_JACK_PORT_ENSURE_MONITOR to HAVE_etc to be more consistant. Added a test in libs/ardour/SConscript for jack video support and ifdef'd the small code blocks in audioengine.cc and session_time.cc where it was used. git-svn-id: svn://localhost/ardour2/trunk@882 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r--libs/ardour/audioengine.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 40d10f30d4..dae5b8f5e3 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -167,6 +167,9 @@ AudioEngine::stop ()
bool
AudioEngine::get_sync_offset (jack_nframes_t& offset) const
{
+
+#ifdef HAVE_JACK_VIDEO_SUPPORT
+
jack_position_t pos;
(void) jack_transport_query (_jack, &pos);
@@ -176,6 +179,8 @@ AudioEngine::get_sync_offset (jack_nframes_t& offset) const
return true;
}
+#endif
+
return false;
}