mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Import the MacOS toolbox modules from the Carbon package.
This commit is contained in:
parent
6dba6bc0a2
commit
5a6fdcd371
100 changed files with 336 additions and 331 deletions
|
@ -40,11 +40,11 @@ class Play_Audio_mac:
|
|||
|
||||
def writeframes(self, data):
|
||||
import time
|
||||
from Sound import bufferCmd, callBackCmd, extSH
|
||||
from Carbon.Sound import bufferCmd, callBackCmd, extSH
|
||||
import struct
|
||||
import MacOS
|
||||
if not self._chan:
|
||||
import Snd
|
||||
from Carbon import Snd
|
||||
self._chan = Snd.SndNewChannel(5, 0, self._callback)
|
||||
nframes = len(data) / self._nchannels / self._sampwidth
|
||||
if len(data) != nframes * self._nchannels * self._sampwidth:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue