summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/Audio_mac.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-25 12:15:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-25 12:15:04 (GMT)
commit5a6fdcd3718927109592c6df692fe24a8fdaee31 (patch)
tree3816c4cbfcf1533dee55a48a8eec2c3557ae44cc /Mac/Lib/Audio_mac.py
parent6dba6bc0a226c2dd384d9311b9ad842be653c2b5 (diff)
downloadcpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.zip
cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.tar.gz
cpython-5a6fdcd3718927109592c6df692fe24a8fdaee31.tar.bz2
Import the MacOS toolbox modules from the Carbon package.
Diffstat (limited to 'Mac/Lib/Audio_mac.py')
-rw-r--r--Mac/Lib/Audio_mac.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Lib/Audio_mac.py b/Mac/Lib/Audio_mac.py
index 14f825e..d8b327b 100644
--- a/Mac/Lib/Audio_mac.py
+++ b/Mac/Lib/Audio_mac.py
@@ -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: