diff options
author | Grissess <grissess@nexusg.org> | 2016-09-12 11:52:50 -0400 |
---|---|---|
committer | Grissess <grissess@nexusg.org> | 2016-09-12 11:52:50 -0400 |
commit | bab20d4625ddddad7911d548edca12cc0ea93c6b (patch) | |
tree | 2a48ef4c45c0578700cdaf7275e5abf74215001c /packet.py | |
parent | 33d49cd847ab06c6912a216cc3b4ff8a549145b1 (diff) |
DRUM SUPPORT!
Diffstat (limited to 'packet.py')
-rw-r--r-- | packet.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ class CMD: PCM = 5 # 16 samples, encoded S16_LE def itos(i): - return struct.pack('>L', i) + return struct.pack('>L', i).rstrip('\0') def stoi(s): - return struct.unpack('>L', s)[0] + return struct.unpack('>L', s.ljust(4, '\0'))[0] |