Skip to content

Commit

Permalink
keep audio packets in a single array
Browse files Browse the repository at this point in the history
  • Loading branch information
passing committed May 23, 2021
1 parent 3087ad3 commit 208a913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jamulus.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# v = 2 bytes length n + n bytes data
# z = all remaining data
"MAIN_FRAME": (("tag", "H"), ("id", "H"), ("count", "B"), ("data", "v")),
"AUDIO_FRAME": (("monster", "B"), ("data", "z")),
"AUDIO_FRAME": (("data", "z"),),
"CRC": (("crc", "H"),),
"ACKN": (("id", "H"),),
"SERVER_IP": (("ip", "A"),),
Expand Down Expand Up @@ -948,4 +948,4 @@ def recvfrom(self, timeout=None, ackn=True, bufsize=MAX_SIZE_BYTES_NETW_BUF):


def silent_audio(base_netw_size):
return {"monster": 0, "data": b"\xff\xfe" + b"\x00" * (base_netw_size - 3)}
return {"data": b"\x00\xff\xfe" + b"\x00" * (base_netw_size - 3)}

0 comments on commit 208a913

Please sign in to comment.