From 891bb2592944aa2be2d81e1583e73e632e70537f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 29 Jan 2016 15:56:26 +0100 Subject: Also reset audio level without -l ZMQ output metadata also needs this. --- src/dabplus-enc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp index b98fa22..d0130fd 100644 --- a/src/dabplus-enc.cpp +++ b/src/dabplus-enc.cpp @@ -987,9 +987,6 @@ int main(int argc, char *argv[]) status & STATUS_UNDERRUN ? "U" : " ", status & STATUS_OVERRUN ? "O" : " "); } - - peak_right = 0; - peak_left = 0; } else { if (status & STATUS_OVERRUN) { @@ -1002,6 +999,9 @@ int main(int argc, char *argv[]) } + peak_right = 0; + peak_left = 0; + status = 0; } -- cgit v1.2.3