Play Audio From File
Play Audio From File is intended as a Cocoa example and a starting point for Core Audio.
It’s based on Apple’s example code Play File and the example in chapter 7 of the book Core Audio from the authors Kevin Avila and Chris Adamson.
Pearson posted a demo EPUB -- -- that has the entirety of chapter 7, which is the first half of Audio Units stuff. So you can take a free look at chapter 7 from the Core Audio book.
I have read the chapter and I found it very well explained.
Play Audio From File plays audio from a file to the default output device. It’s very basic, it has no Stop function and there is no Call Back function in the source code.
In Apple’s example the Public Utilities are used which I like to avoid as much as possible because I don’t have a good reference to Apple’s Public Utilities.
Play Audio From File is full Cocoa and that means all classes end on .m.
The MVC design pattern is followed in Play Audio From 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.
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