diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-01-19 14:49:17 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-01-19 14:49:17 +0100 |
commit | 23ade5792e57fd380aa72de9039148a7f946f3d6 (patch) | |
tree | 9e00003002b5c0f9d1b0c17d2b617ad3c5285134 | |
parent | 2234137c48974c11cd6053ec7e1af8b0f96f5737 (diff) | |
download | mmbtools-aux-master.tar.gz mmbtools-aux-master.tar.bz2 mmbtools-aux-master.zip |
-rwxr-xr-x | edi/edidebug.py | 4 | ||||
-rwxr-xr-x | send_dabp_to_zmq.py | 4 | ||||
-rwxr-xr-x | uecpparse/uecp_parse.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/edi/edidebug.py b/edi/edidebug.py index 9339bdb..d6e5f92 100755 --- a/edi/edidebug.py +++ b/edi/edidebug.py @@ -6,7 +6,7 @@ # # The MIT License (MIT) # -# Copyright (c) 2017 Matthias P. Braendli +# Copyright (c) 2019 Matthias P. Braendli # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -506,7 +506,7 @@ def decode_tag(tagpacket): elif item['name'] == "*dmy": decode_stardmy(item) else: - p.hexpr("Tag item '{}'".format(item['name']), item['value']) + p.hexpr("Unknown TAG item '{}'".format(item['name']), item['value']) p.dec() return True diff --git a/send_dabp_to_zmq.py b/send_dabp_to_zmq.py index 2e87410..0a2bd6d 100755 --- a/send_dabp_to_zmq.py +++ b/send_dabp_to_zmq.py @@ -39,7 +39,7 @@ args = parser.parse_args() frame_header = "<HHIhh" # Taken from ODR-AudioEnc sources' utils.h -ZMQ_ENCODER_FDK=1 +ZMQ_ENCODER_AACPLUS=1 # About the datasize field and the number of bytes per ZMQ message: # One ZMQ message contains 120ms worth of encoded data, i.e. one superframe @@ -84,7 +84,7 @@ while True: # Let us build a frame starting with the header version=1 - encoder=ZMQ_ENCODER_FDK + encoder=ZMQ_ENCODER_AACPLUS # we fake the audio level, munin might flag a warning, but that can be sorted out # later. Range for the audiolevel is 0 to 0x7FFF (range of signed 16-bit integer) diff --git a/uecpparse/uecp_parse.py b/uecpparse/uecp_parse.py index b0d8822..fad580e 100755 --- a/uecpparse/uecp_parse.py +++ b/uecpparse/uecp_parse.py @@ -199,7 +199,7 @@ while True: if not data: break - line_bytes = [int(i) for i in data] + line_bytes = list(data) line_bytes.reverse() |