summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-03 11:14:12 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-03 11:14:12 (GMT)
commite396c04832927dd385aed67de78904e5fa9a6d03 (patch)
treef4d63258e255f12064a13aad9ab171fc3d71f01c /Mac
parente56e87dcc89f0728b7900f13e57b22eb38457eb1 (diff)
downloadcpython-e396c04832927dd385aed67de78904e5fa9a6d03.zip
cpython-e396c04832927dd385aed67de78904e5fa9a6d03.tar.gz
cpython-e396c04832927dd385aed67de78904e5fa9a6d03.tar.bz2
struct.pack wants H for unsigned shorts, not h.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Lib/Audio_mac.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Lib/Audio_mac.py b/Mac/Lib/Audio_mac.py
index f6cc1ca..d59119d 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,