aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-16 21:05:44 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-16 21:05:44 +0100
commit95b49fdf03b372be193b62a0578d097ee4edfdf4 (patch)
tree4315c149246f2a85e5ecb060e4e4594d0428671d /src
parente48d12851f2007d25524289055bc91f38ae95997 (diff)
downloadODR-SourceCompanion-95b49fdf03b372be193b62a0578d097ee4edfdf4.tar.gz
ODR-SourceCompanion-95b49fdf03b372be193b62a0578d097ee4edfdf4.tar.bz2
ODR-SourceCompanion-95b49fdf03b372be193b62a0578d097ee4edfdf4.zip
Fix peak levels to 0x7FFF to avoid alarms
Diffstat (limited to 'src')
-rw-r--r--src/odr-sourcecompanion.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/odr-sourcecompanion.cpp b/src/odr-sourcecompanion.cpp
index 0271f50..2fd2b78 100644
--- a/src/odr-sourcecompanion.cpp
+++ b/src/odr-sourcecompanion.cpp
@@ -398,6 +398,11 @@ int main(int argc, char *argv[])
}
}
}
+
+ // TODO get level information from encoder. In the meantime, set to max value to avoid alarms.
+ peak_left = 0x7FFF;
+ peak_right = 0x7FFF;
+
read_bytes = numOutBytes;
if (numOutBytes != 0) {