Repository navigation
Releases
v0.1.0-libs - driver + libraries
First public release of the bit-perfect USB Audio driver and Media3 integration libraries for Android.
This is a libraries-only release. The standalone decent-player music player application is future work; today's deliverable is the foundation any Android Media3 / ExoPlayer app can consume to deliver bit-perfect audio over a USB Audio Class 2.0 DAC.
What's in the box
| Module | What it does |
|---|---|
decent-usb-audio-driver |
Native USB Audio Class 2.0 driver (C++ + JNI). Bypasses AudioFlinger, AudioTrack, AAudio, ALSA, and the kernel snd-usb-audio driver entirely. |
decent-usb-audio-wrapper-media3 |
Drop-in ExoPlayer / Media3 AudioSink wrapper. Three lines to integrate. |
decent-media3-decoder-flac |
Native FLAC decoder integration (xiph/flac source). Enables the zero-float-math FLAC path. |
The three AARs attached below contain native binaries for arm64-v8a, armeabi-v7a, x86, and x86_64 — universal ABI coverage.
Verified hardware
| Device | Android | DAC | Status |
|---|---|---|---|
| Samsung Galaxy S26 Ultra | 16 (API 36) | Cayin RU7 | Bit-perfect confirmed |
| iBasso DX340 | 13 (API 33) | Cayin RU7 | Bit-perfect confirmed |
24-bit / 192 kHz FLAC reaches the DAC at native rate; the DAC feedback rate matches the stream rate within crystal tolerance (verified via the UAC2 asynchronous feedback endpoint). Full proof procedure in docs/driver/07-verification-and-diagnostics.md.
How to consume
For now (until Maven Central publication, planned after community DAC verification — see the Roadmap):
Option 1 — Project paths (recommended for development)
Clone this repository as a sibling and reference the modules by path. Full instructions in Integration Guide § Step 1.
Option 2 — Drop-in AARs (recommended for "I just want to try it")
Download the three .aar files attached below, drop them into your app's libs/ folder, and reference them like this:
dependencies {
implementation(files("libs/decent-usb-audio-driver-release.aar"))
implementation(files("libs/decent-usb-audio-wrapper-media3-release.aar"))
implementation(files("libs/decent-media3-decoder-flac-release.aar"))
// Required transitive dependencies (Media3 + FFmpeg decoder for non-FLAC formats)
implementation("androidx.media3:media3-exoplayer:1.9.3")
implementation("androidx.media3:media3-common:1.9.3")
implementation("androidx.media3:media3-datasource:1.9.3")
implementation("org.jellyfin.media3:media3-ffmpeg-decoder:1.9.0+1")
}Then follow the three-line integration in Getting Started.
Documentation
- Getting Started — quick integration for Media3 apps.
- Integration Guide — detailed setup with both Media3 and standalone-driver scenarios.
- Architecture — pipeline diagram + bit-perfect math.
- Driver deep-dive — the technical journey, USB protocol analysis, bug history.
- Known Limitations — trade-offs deliberately deferred for v0.1.
Licensing
libs/(this release's deliverable): MIT — seeLICENSE.driver/Felicity/(proof-of-concept harness, not in the AARs above): AGPL-3.0 fork of Felicity Music Player by Hamza Rizwan, used purely as a testing host for the libraries.
See NOTICE.md for the full breakdown.
Caveats / known v0.1.0 trade-offs
See docs/libs/KNOWN_LIMITATIONS.md. TL;DR: the single-class UsbAudioSink design is intentional for now, the UsbAudioDevice singleton is fine for one DAC at a time, no automated test suite yet (hardware-driving libraries are hard to unit-test), and we want community DAC reports before publishing to Maven Central.
Next milestones
- Verify more DACs across vendors — community DAC verification reports welcome via the DAC verification issue template.
- Stabilize the public API surface as third-party apps integrate.
- Publish to Maven Central so consumers can drop the libraries in via standard coordinates instead of project paths or AAR files.
- DSD support (DoP first, then native DSD) — design captured in
docs/libs/DSD_SUPPORT.md. - Begin the standalone
decent-playermusic player on top of these libraries.
Acknowledgements
Built on top of xiph/flac (BSD-style) and developed inside a fork of the Felicity Music Player by Hamza Rizwan (AGPL-3.0) used as a hardware-test harness.