[Python-checkins] CVS: python/dist/src/Mac/Lib Audio_mac.py,1.8,1.9

Jack Jansen jackjansen@users.sourceforge.net
2001年8月25日 05:01:20 -0700


Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv17746/Python/Mac/Lib
Modified Files:
	Audio_mac.py 
Log Message:
Import the MacOS toolbox modules from the Carbon package.
Index: Audio_mac.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/Audio_mac.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Audio_mac.py	2001年02月09日 15:56:19	1.8
--- Audio_mac.py	2001年08月25日 12:01:17	1.9
***************
*** 41,49 ****
 	def writeframes(self, data):
 		import time
! 		from Sound import bufferCmd, callBackCmd, extSH
 		import struct
 		import MacOS
 		if not self._chan:
! 			import Snd
 			self._chan = Snd.SndNewChannel(5, 0, self._callback)
 		nframes = len(data) / self._nchannels / self._sampwidth
--- 41,49 ----
 	def writeframes(self, data):
 		import time
! 		from Carbon.Sound import bufferCmd, callBackCmd, extSH
 		import struct
 		import MacOS
 		if not self._chan:
! 			from Carbon import Snd
 			self._chan = Snd.SndNewChannel(5, 0, self._callback)
 		nframes = len(data) / self._nchannels / self._sampwidth

AltStyle によって変換されたページ (->オリジナル) /