mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
struct.pack wants H for unsigned shorts, not h.
This commit is contained in:
parent
e56e87dcc8
commit
e396c04832
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue