Disclosure: I'm the developer of Trove, the app this post is about. It's a commercial app with a free download and a one-time Pro purchase; it isn't open source.
I've spent the last few months building Trove , a music player for people who keep their own files: FLAC rips, ALAC, the occasional APE album, DSD downloads, and collections stored on a NAS. It runs on iPhone, iPad, Mac and Apple Watch, with platform-specific interfaces built around a shared project.
The interesting part hasn't been drawing a play button. It's been making a player behave predictably when the files, tags, devices and networks belong to the listener—not to a catalog I control.
1. Two paths into one playback engine
Apple's audio stack can handle a useful range of formats, including FLAC, ALAC, MP3, AAC, WAV and AIFF. For those files, Trove uses the native audio path.
The extended-format path covers files such as APE, Ogg Vorbis, Opus, WMA, DSF/DFF, WavPack, TTA and Musepack.…