Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.1

Posted: 2009-04-15

Build Requirements: Mac OS X v10.6 or later

Runtime Requirements: Mac OS X v10.6 or later

View Source Code:

Download Sample Code (“CAPlayThrough.zip”, 40.7K)



Description

The CAPlayThrough example project provides a Cocoa based sample application for obtaining all possible input and output devices on the system, setting the default device for input and/or output, and playing through audio from the input device to the output. The application uses two instances of the AUHAL audio unit (one for input, one for output) and a varispeed unit in between to compensate for minor sample rate drift. The app also uses a ring buffer to store the captured audio data from input and access it as needed by the output unit.

Document Revision History

Date Notes
2009-04-15Updated for Mac OS X 10.6
2007-08-22Provides sample code for taking input from a specified input device and playing it through a specified output device
2007-08-21Provides sample code for taking input from a specified input device and playing it through a specified output device
Did this document help you? Yes It's good, but... Not helpful...