summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/audio_backend.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-04 17:08:45 +0100
committerRobin Gareus <robin@gareus.org>2015-12-04 17:08:45 +0100
commit78a9791b5850e48dfcaf7045f443a082f14f58da (patch)
treec45d8489e9c7e625672566e6a5aeaac6887df77d /libs/ardour/ardour/audio_backend.h
parente9b0b4bcf036b144ed9ebd69ad6bfb27db44ae67 (diff)
add interface for latency updates w/o restarting the backend
This is useful for USB devices. Since there is a ringbuffer in the driver (common on ALSA but also other platforms) to align the USB stream with USB bus timing the latency can differ every time the device is re-opened.
Diffstat (limited to 'libs/ardour/ardour/audio_backend.h')
-rw-r--r--libs/ardour/ardour/audio_backend.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audio_backend.h b/libs/ardour/ardour/audio_backend.h
index 0428c36b44..379eae9fd9 100644
--- a/libs/ardour/ardour/audio_backend.h
+++ b/libs/ardour/ardour/audio_backend.h
@@ -350,6 +350,11 @@ class LIBARDOUR_API AudioBackend : public PortEngine {
*/
virtual bool can_change_buffer_size_when_running () const = 0;
+ /** return true if the backend can measure and update
+ * systemic latencies without restart.
+ */
+ virtual bool can_change_systemic_latency_when_running () const { return false; }
+
/* Set the hardware parameters.
*
* If called when the current state is stopped or paused,