From e396c04832927dd385aed67de78904e5fa9a6d03 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 3 Jan 2001 11:14:12 +0000 Subject: [PATCH] struct.pack wants H for unsigned shorts, not h. --- Mac/Lib/Audio_mac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Lib/Audio_mac.py b/Mac/Lib/Audio_mac.py index f6cc1caa15e..d59119d7e48 100644 --- a/Mac/Lib/Audio_mac.py +++ b/Mac/Lib/Audio_mac.py @@ -56,7 +56,7 @@ class Play_Audio_mac: if self._sampwidth == 1: import audioop data = audioop.add(data, '\x80'*len(data), 1) - h1 = struct.pack('llhhllbbl', + h1 = struct.pack('llHhllbbl', id(data)+MacOS.string_id_to_buffer, self._nchannels, self._outrate, 0,