Commit e61aa7c8 authored by Jack Jansen's avatar Jack Jansen

struct.pack wants H for unsigned shorts, not h.

parent d9d75bf4
...@@ -56,7 +56,7 @@ class Play_Audio_mac: ...@@ -56,7 +56,7 @@ class Play_Audio_mac:
if self._sampwidth == 1: if self._sampwidth == 1:
import audioop import audioop
data = audioop.add(data, '\x80'*len(data), 1) data = audioop.add(data, '\x80'*len(data), 1)
h1 = struct.pack('llhhllbbl', h1 = struct.pack('llHhllbbl',
id(data)+MacOS.string_id_to_buffer, id(data)+MacOS.string_id_to_buffer,
self._nchannels, self._nchannels,
self._outrate, 0, self._outrate, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment