Audio Queue Record To File
Audio Queue Services Programming Guide
Apple’s document that describes how to use Audio Queue Services.
Audio Queue Services provides a straightforward, low overhead way to record and play back audio in Mac OS X and replaces the Sound Manager which is deprecated in Mac OS X v10.5.
In Apple’s Audio Queue Services Programming Guide there are two example programs one to Record Audio and one to Play Back Audio. I use this two examples in my FRG100 Cat Control App. to record and play back audio. As file format I choose AIFF because NAVTEX audio from the FRG100 has to be decoded to text with a DSP algorithm which needs a PCM audio format.
The Audio Queue Record example is very well explained and documented by Apple.
I converted the Apple example to a Cocoa Project and copied all the comments from Apple on how the code works in the model class.
There is also an Audio Queue example from Apple called AudioQueueTools which you can study.
Audio Queue Record is full Cocoa and that means all classes end on .m.
The MVC design pattern is followed in Audio Queue Record, there is a Controller and Model class.
The build and runtime requirements for this project are Mac OSX10.6 and XCode4.0.1.
The application icon is from Vincent Garnier.
If you have questions about programming topics please ask these questions on a developer mailing list from Apple. There you find people with far more knowledge then I.
For questions concerning Core Audio goto:
For books about the foundation of Cocoa Programming visit:
Other useful books:
C++ From the Beginning, author Jan Skansholm.
Cocoa Programming Developer’s Handbook, author David Chisnall.
Core Audio, authors Kevin Avila and Chris Adamson.
If you have remarks or if you find bugs please send me an email:
Click on the picture to download the application and the source code.
© JG Electronics