Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7d8f45

Browse files
committed
Hack to get at string buffer address changed
1 parent 0db61d1 commit f7d8f45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mac/Lib/Audio_mac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def writeframes(self, data):
5757
import audioop
5858
data = audioop.add(data, '\x80'*len(data), 1)
5959
h1 = struct.pack('llhhllbbl',
60-
id(data)+MacOS.string_id_to_data,
60+
id(data)+MacOS.string_id_to_buffer,
6161
self._nchannels,
6262
self._outrate, 0,
6363
0,

0 commit comments

Comments
 (0)