Skip to content

Commit 208a913

Browse files
committed
keep audio packets in a single array
1 parent 3087ad3 commit 208a913

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jamulus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# v = 2 bytes length n + n bytes data
2121
# z = all remaining data
2222
"MAIN_FRAME": (("tag", "H"), ("id", "H"), ("count", "B"), ("data", "v")),
23-
"AUDIO_FRAME": (("monster", "B"), ("data", "z")),
23+
"AUDIO_FRAME": (("data", "z"),),
2424
"CRC": (("crc", "H"),),
2525
"ACKN": (("id", "H"),),
2626
"SERVER_IP": (("ip", "A"),),
@@ -948,4 +948,4 @@ def recvfrom(self, timeout=None, ackn=True, bufsize=MAX_SIZE_BYTES_NETW_BUF):
948948

949949

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

0 commit comments

Comments
 (0)