Sample code for using Core Audio. From the book 'Learning Core Audio'