Skip to content

Releases

v0.1.0-libs - driver + libraries

Choose a tag to compare

@Ma145 Ma145 released this 10 May 05:31

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

Licensing

  • libs/ (this release's deliverable): MIT — see LICENSE.
  • 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

  1. Verify more DACs across vendors — community DAC verification reports welcome via the DAC verification issue template.
  2. Stabilize the public API surface as third-party apps integrate.
  3. Publish to Maven Central so consumers can drop the libraries in via standard coordinates instead of project paths or AAR files.
  4. DSD support (DoP first, then native DSD) — design captured in docs/libs/DSD_SUPPORT.md.
  5. Begin the standalone decent-player music 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.