JG Electronics

Record Audio To File

Record Audio To File is intended as a Cocoa example and a starting point for Core Audio.

It’s based on Apple’s example code Record Audio To File which I used as a starting point.

I copied the code into Xcode4.0 and I replaced some deprecated functions / methods.

Record Audio To File records and saves Audio from the default input device.


Record Audio To File is full Cocoa and that means all classes end on .m.

The MVC design pattern is followed in Record Audio To File, 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.

http://benjigarner.deviantart.com/art/Fruity-Apples-80805804


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: coreaudio-api@lists.apple.com

For books about the foundation of Cocoa Programming visit: www.bignerdranch.com

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: jgelectronics@icloud.com


Click on the picture to download the application and the source code.


Happy Coding!


John