CARVIEW |
Select Language
HTTP/2 200
date: Wed, 16 Jul 2025 22:01:09 GMT
server: Apache/2.4.41 (Ubuntu)
vary: Cookie,User-Agent,Accept-Encoding
set-cookie: MOIN_SESSION_443_ROOT_moin=bc2fc7386366011e5c5b4922304050daaca10ea3; Expires=Wed, 16-Jul-2025 23:01:00 GMT; Max-Age=3600; Secure; Path=/
content-encoding: gzip
content-type: text/html; charset=utf-8
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
MacPython/CoreAudio - Python Wiki
Links:
I (DonovanPreston) have been noodling around with wrapping the low level /CoreAudio APIs necessary to generate sound on Mac OS X using Python. After struggling with threading and callbacks into Python issues I managed to get a simple hello world going which just plays a sine wave for 5 seconds. The bulk of the code is in a pyrex file here:
And here is the simple driver python script:
You compile the pyrex to a c file, and then there is a setup script which will build the extension module:
Other links:
MacPython/CoreAudio (last edited 2015-08-13 01:12:45 by mlh)
Unable to edit the page? See the FrontPage for instructions.