Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4240b61 commit 1801aadCopy full SHA for 1801aad
1 file changed
Mac/Lib/Audio_mac.py
@@ -42,6 +42,7 @@ def writeframes(self, data):
42
import time
43
from Sound import *
44
import struct
45
+ import MacOS
46
if not self._chan:
47
import Snd
48
self._chan = Snd.SndNewChannel(5, 0, self._callback)
@@ -56,7 +57,7 @@ def writeframes(self, data):
56
57
import audioop
58
data = audioop.add(data, '\x80'*len(data), 1)
59
h1 = struct.pack('llhhllbbl',
- id(data)+12,
60
+ id(data)+MacOS.string_id_to_data,
61
self._nchannels,
62
self._outrate, 0,
63
0,
0 commit comments