From 4ccd247a763ecdd4920a6fcb0af071fef9e49367 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 19 Jan 2016 19:36:19 +0100 Subject: Check full initial_samples_needed range. --- test/audiocachetest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/audiocachetest.cc b/test/audiocachetest.cc index 0296490..7e8b084 100644 --- a/test/audiocachetest.cc +++ b/test/audiocachetest.cc @@ -30,7 +30,7 @@ #include #include -#define FRAMESIZE 64//1024 +#define FRAMESIZE 64 class AudioCacheTest : public CppUnit::TestFixture { @@ -74,7 +74,7 @@ public: cacheid_t id; for(size_t initial_samples_needed = 0; - initial_samples_needed < (framesize - 1); ++initial_samples_needed) + initial_samples_needed < (framesize + 1); ++initial_samples_needed) { printf("open: initial_samples_needed: %d\n", initial_samples_needed); -- cgit v1.2.3