JG Electronics

Play Audio From File Enhanced

Play Audio From File enhanced with an appearance that follows the Apple Human Interface Guidelines, a volume control, stop function and time display. Command click on the file icon to see the file path of the audio file. The source code is more structuralized so it’s more clear how to initialize and use audio units.

In the future I will enhance Play Audio From File with an Audio Unit Stereo Mixer to add pan control and VU-meters.


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 requirements for this project are Mac OSX10.7 and XCode4.1

The runtime requirements are Mac OSX10.6 or later.


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