From df45886d6b5800c5897cf05e7daf230f7d546954 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 5 Apr 2016 17:06:24 -0400 Subject: [PATCH] Bug1340: sync-lock should work when generating audio --- src/effects/Effect.cpp | 1 - src/effects/Generator.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/effects/Effect.cpp b/src/effects/Effect.cpp index f65764db5..7a97bc8d5 100644 --- a/src/effects/Effect.cpp +++ b/src/effects/Effect.cpp @@ -763,7 +763,6 @@ void Effect::SetDuration(double seconds) } mDuration = seconds; - mT1 = mT0 + mDuration; mIsSelection = false; diff --git a/src/effects/Generator.h b/src/effects/Generator.h index f6094f533..80ffc12be 100644 --- a/src/effects/Generator.h +++ b/src/effects/Generator.h @@ -69,7 +69,7 @@ protected: sampleCount block) = 0; // Generate the track, one block at a time, & adding the results to tmp - bool GenerateTrack(WaveTrack *tmp, const WaveTrack &track, int ntrack); + bool GenerateTrack(WaveTrack *tmp, const WaveTrack &track, int ntrack) override; }; #endif