From 96d3bd669ebe813710cd5010fd3aafdf99f085a6 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 18 Mar 2014 22:09:41 +0000 Subject: [PATCH] hmm --- source/backend/engine/CarlaEngineRtAudio.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/backend/engine/CarlaEngineRtAudio.cpp b/source/backend/engine/CarlaEngineRtAudio.cpp index c00ba103c..81fddc909 100644 --- a/source/backend/engine/CarlaEngineRtAudio.cpp +++ b/source/backend/engine/CarlaEngineRtAudio.cpp @@ -709,7 +709,9 @@ protected: if (++i == fAudioInCount) { i = 0; - ++j; + + if (++j == nframes) + j = 0; } } } @@ -775,7 +777,9 @@ protected: if (++i == fAudioOutCount) { i = 0; - ++j; + + if (++j == nframes) + j = 0; } } }