diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-16 21:05:44 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-16 21:05:44 +0100 |
commit | 95b49fdf03b372be193b62a0578d097ee4edfdf4 (patch) | |
tree | 4315c149246f2a85e5ecb060e4e4594d0428671d /src | |
parent | e48d12851f2007d25524289055bc91f38ae95997 (diff) | |
download | ODR-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.cpp | 5 |
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) { |