From the archives
2021-10-18
Note: This was posted to my old blog. I’m only posting this here so I can finally delete that old abandoned git repo.
Implementing a CAF (Core Audio Format) muxer by hand seemed like the best way to actually understand the file format, which is why I wrote this.
Disclaimers: This code will only work for ALAC streams. It’s neither complete nor bug-free (I didn’t come across any bugs, but you never know).
The majority of this code is based on the information provided in Apple’s Developer Documentation Archive.
Source code for the project along with two examples can be found here: 0x666690/caf