From e24b61c9050e1a8eab5030e655483ad0dc1a53dc Mon Sep 17 00:00:00 2001 From: iBug Fu <7273074+iBug@users.noreply.github.com> Date: Mon, 20 Nov 2017 22:38:04 +0800 Subject: [PATCH] Fix logical error --- transmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmitter.cpp b/transmitter.cpp index a1be702..9b619be 100644 --- a/transmitter.cpp +++ b/transmitter.cpp @@ -164,7 +164,7 @@ void Transmitter::play(string filename, double frequency, bool loop) if (loop && !forceStop) { frameOffset = 0; restart = true; - if (reader->setFrameOffset(0)) { + if (!reader->setFrameOffset(0)) { break; } frames = reader->getFrames(bufferFrames, forceStop);