CAPlayThrough
| Last Revision: | Version 1.2.1, 2012-06-13 Moved to AudioComponent API from deprecated Component Manager APIs. (Full Revision History) |
| Build Requirements: | Mac OS X v10.7 or later Xcode 4.3 or later |
| Runtime Requirements: | Mac OS X v10.7 or later |
NOTE: This sample requires the Core Audio Utility Classes folder called "CoreAudio". To build without having to modify the project, place the "CoreAudio" folder in /Library/Developer. See Q&A 1731 for more details.
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.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-06-13)