changeset 398:7373a8c262ca

Beta release dialog
author Chris Cannam
date Wed, 13 Aug 2014 21:37:25 +0100
parents f747be6743ab
children 5fd0dd4ed984 c7276fbba9e7
files audioio/AudioCallbackPlaySource.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Wed Aug 13 16:44:50 2014 +0100
+++ b/audioio/AudioCallbackPlaySource.cpp	Wed Aug 13 21:37:25 2014 +0100
@@ -610,7 +610,11 @@
 
     int targetRate = getTargetSampleRate();
     int latency = m_playLatency; // at target rate
-    RealTime latency_t = RealTime::frame2RealTime(latency, targetRate);
+
+    RealTime latency_t;
+    if (targetRate != 0) {
+        latency_t = RealTime::frame2RealTime(latency, targetRate);
+    }
 
     return getCurrentFrame(latency_t);
 }