These are the code listings from the Learning Core Audio book, in Swift. I hope to illustrate how to call to low-level C APIs (such as Core Audio) from Swift, which, at least according to the first listing, is not a trivial feat.
Feedback, and pull requests, are welcome.