Last Revision:
Version 1.2.2, 2013-09-23
Updated for Xcode 4.6.3. Added v1.0.4 version of required Core Audio Utility Classes.
(Full Revision History)
Build Requirements:
OS X v10.7 or later Xcode 4.3 or later
Runtime Requirements:
OS X v10.7 or later

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.