diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-29 15:56:26 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-29 15:56:26 +0100 |
commit | 891bb2592944aa2be2d81e1583e73e632e70537f (patch) | |
tree | 170c637a3a15b66cd5e4154d5968ddf1b2d5619a | |
parent | 2e91dde99246b3a843b86ac76ccd7d5d85959cf5 (diff) | |
download | ODR-AudioEnc-891bb2592944aa2be2d81e1583e73e632e70537f.tar.gz ODR-AudioEnc-891bb2592944aa2be2d81e1583e73e632e70537f.tar.bz2 ODR-AudioEnc-891bb2592944aa2be2d81e1583e73e632e70537f.zip |
Also reset audio level without -l
ZMQ output metadata also needs this.
-rw-r--r-- | src/dabplus-enc.cpp | 6 |
1 files 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; } |