O'Reilly logo

Learning Core Audio: A Hands-On Guide to Audio Programming for Mac and iOS by Kevin Avila, Chris Adamson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required