Skip to content

Add optional USB DAC routing for high-res playback - #142

Merged
paroj merged 1 commit into
paroj:edgefrom
symonbaikov:feature/usb-dac-control
May 29, 2026
Merged

Add optional USB DAC routing for high-res playback#142
paroj merged 1 commit into
paroj:edgefrom
symonbaikov:feature/usb-dac-control

Conversation

@symonbaikov

Copy link
Copy Markdown

Routes playback to a connected USB audio device when the new "Route to USB DAC" preference is enabled, so high-res files reach the DAC without going through the default output. Applies on the next prepare; hot-plug mid-track is left for a follow-up.

MediaPlayer.setPreferredDevice and ExoPlayer.setPreferredAudioDevice are guarded behind API 28+. UsbDacHelper also reads the source sample rate via MediaExtractor for diagnostic logging.

Refs #141.

Routes playback to a connected USB audio device when the new
"Route to USB DAC" preference is enabled, so high-res files reach
the DAC without going through the default output. Applies on the
next prepare; hot-plug mid-track is left for a follow-up.

MediaPlayer.setPreferredDevice and ExoPlayer.setPreferredAudioDevice
are guarded behind API 28+. UsbDacHelper also reads the source
sample rate via MediaExtractor for diagnostic logging.

Refs paroj#141.
@paroj
paroj merged commit 1b21265 into paroj:edge May 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants