Differences between revisions 5 and 6
Revision 5 as of 2007-07-18 12:35:06
Size: 1064
Comment:
Revision 6 as of 2008-11-15 14:01:27
Size: 1074
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * [http://www.musickit.org/ MusicKit] - ["/PyObjC"]
 * [http://www.eblong.com/zarf/boodler/ Boodler] - ["/Python"]
 * [[http://www.musickit.org/|MusicKit]] - [[/PyObjC]]
 * [[http://www.eblong.com/zarf/boodler/|Boodler]] - [[/Python]]
Line 8: Line 8:
 * [http://soundfarmer.com/content/code/coreaudio/coreaudio.pyx]  * [[http://soundfarmer.com/content/code/coreaudio/coreaudio.pyx]]
Line 12: Line 12:
 * [http://soundfarmer.com/content/code/coreaudio/catest.py]  * [[http://soundfarmer.com/content/code/coreaudio/catest.py]]
Line 16: Line 16:
 * [http://soundfarmer.com/content/code/coreaudio/setup.py]  * [[http://soundfarmer.com/content/code/coreaudio/setup.py]]

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.