Lark Audio Hi-Res Music Player
work in progress
Kotlin · Jetpack Compose · Media3 · C++ · JNI · Oboe · AAudio · Android NDK · CMake · usbfs · TagLib · WorkManager · Room · Cloudflare Workers · Hono · D1 · R2 · Cloudflare Pages · Google Play Billing
Lark Audio is a music player for people who bought good headphones and a DAC, then found out their phone was quietly resampling everything.
The problem
Android mixes all audio through one system mixer. It resamples your music to whatever rate the mixer runs at, so a 96 kHz file rarely reaches the DAC as 96 kHz. Most players cannot avoid this because they hand audio to the system and hope for the best.
How it works
- Native engine. Decoding and output run in C++, not in the app layer, with exclusive streams where the device allows it.
- Direct USB path. For USB DACs the app talks to the device itself and skips the system mixer completely, so the samples in the file are the samples the DAC receives.
- Honest signal path. The app shows the real format at each step, and lists only the effects that are really working on the current song.
- Sound tools that stay on the direct path. The equalizer, ReplayGain, crossfade and gapless playback all run inside the engine, so they keep working through the USB driver.
The equalizer
Version 0.7.0 rebuilt it in two layers. The quick layer: pick a sound, then adjust bass and treble. The full editor: parametric up to 32 bands, graphic with 10 or 31 bands, Mid/Side, linear phase and dynamic EQ, or draw a curve with your finger.
Around it: correction profiles for more than 1,100 IEMs, each credited to its measurer, a hearing test that adjusts each ear, and Made for me, which finds the sound you like through a few A/B choices while your music plays.
Formats and sources
FLAC, WAV, AIFF, ALAC, APE, WavPack, CUE sheets, and DSD (DSF and DFF), played natively or converted to PCM. Music can come from the phone, from a NAS or PC over SMB, WebDAV or Subsonic, from lossless radio, or from Lark Cloud, a private hi-res locker that gives every file back bit for bit.
The hard parts
- Writing a USB audio driver in user space, then chasing down clicks and dropouts that only happen on specific DACs.
- Memory safety in a real-time audio thread, where a lock at the wrong moment is something you can hear.
- Keeping a list of DACs that were actually tested, published on the website, instead of claiming everything works.
- Shipping in 18 languages as one person, from the audio engine to the cloud backend and the website.
Status
Live on Google Play, version 0.7.0, in 18 languages. I build it alone, from the audio engine to the website.