Differences between revisions 6 and 7
Revision 6 as of 2008-11-15 14:01:27
Size: 1074
Editor: localhost
Comment: converted to 1.6 markup
Revision 7 as of 2009-04-02 00:45:38
Size: 1229
Editor: a88-115-213-227
Comment: setup.py oddity
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
- didn't work. tries running the python file as a shell script by default (?!?), with python gives "error: no commands supplied". How should this work?

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:

- didn't work. tries running the python file as a shell script by default (?!?), with python gives "error: no commands supplied". How should this work?

Other links:

MacPython/CoreAudio (last edited 2015-08-13 01:12:45 by mlh)

Unable to edit the page? See the FrontPage for instructions.