mirror of https://github.com/python/cpython.git
Hack to get at string buffer address changed
This commit is contained in:
parent
0db61d163d
commit
f7d8f45414
|
@ -57,7 +57,7 @@ def writeframes(self, data):
|
|||
import audioop
|
||||
data = audioop.add(data, '\x80'*len(data), 1)
|
||||
h1 = struct.pack('llhhllbbl',
|
||||
id(data)+MacOS.string_id_to_data,
|
||||
id(data)+MacOS.string_id_to_buffer,
|
||||
self._nchannels,
|
||||
self._outrate, 0,
|
||||
0,
|
||||
|
|
Loading…
Reference in New Issue