Import the MacOS toolbox modules from the Carbon package.

This commit is contained in:
Jack Jansen 2001-08-25 12:15:04 +00:00
parent 6dba6bc0a2
commit 5a6fdcd371
100 changed files with 336 additions and 331 deletions

View file

@ -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: