DAGDA SEARCH | Back to results | Support

MacPython / Core Audio - Python Wiki

Source: https://wiki.python.org/python/platforms/MacPython/CoreAudio.html

  1. Python Wiki /
  2. Python Wiki /
  3. Platform-Specific /
  4. MacPython /
  5. MacPython / Core Audio
View as Markdown

MacPython / Core AudioΒΆ

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

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:

PreviousMacPython / Carbon Documentation Next MacPython / Draw Bot