5. Playback
In the previous chapter, you learned how to record audio with an Audio Queue, the highest level of Core Audio’s engine APIs. An audio queue uses a queue of buffers to process a stream of audio: Your application sets up the queue by providing it with these buffers, and the queue sends a buffer to a callback function in your code when it’s time for you to act on it.
All this applies to recording, but it also applies to playback, which is the other use of an audio queue. The difference is one of responsibility: Instead of the recording queue delivering you buffers of newly captured audio, a playback queue gives you empty buffers that you are expected to fill with audio to be played out.
In this chapter, you’ll learn how to use playback ...
Get Learning Core Audio: A Hands-On Guide to Audio Programming for Mac and iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.