Concepts
How audio reaches your DAC
Two roads lead from the file to the sound. Here is who owns each one, and how Polylute picks between them.
In short
- There are two roads to a USB DAC. On the Android route the sound goes through Android’s own audio system. On USB Direct Polylute talks to the DAC itself.
- Only the last stretch is Polylute’s own. Opening the file, decoding it, the queue and the clock are the same on both roads.
- Polylute picks the road for you, song by song, and shows which one it used.
- We built it this way so that nothing sits between the file and the DAC that you did not choose.
How it works
Every song starts the same way: the player opens the file and decodes it into plain samples. What happens next depends on the road.
In words
Android route: the player decodes the file, Polylute’s effects (EQ, ReplayGain, an optional peak limiter) may change the samples, Android’s audio system mixes the sound, and it leaves through the speaker, Bluetooth, or USB through Android.
USB Direct: the player decodes the file, Polylute’s effects change the samples only when Resonance is on, and Polylute’s own USB output packs the samples and sends them to the DAC, which plays them.
What is the same on both roads
Polylute uses Media3, Google’s open-source player library for Android, for everything except the final output. That covers opening files, decoding them (FLAC with the reference FLAC library), the queue, the position and the clock, and the media notification. A song is decoded the same way whichever road it takes.
What is Polylute’s own
Only the output. On USB Direct, Polylute replaces the player’s audio output with its own. That output asks the DAC to switch to the file’s sample rate, packs the samples, sends them over USB and watches over the DAC’s volume. The next pages tell the rest: The USB transport, Keeping volume safe and When a DAC misbehaves.
How Polylute picks the road
Polylute asks a short list of questions, always in the same order, and the first answer that says “Android” wins. If none does, the road is USB Direct.
In words
- Is crossfade, an Android sound effect, or a speed other than 1.0× in use? Then the sound goes through the Android route.
- Is there no DAC, or no USB permission for it? Android route.
- Can the DAC not take this file, or did Direct just fail for it? Android route.
- Is it not a safe moment to switch yet? Android route, for now.
- Is the DAC shared with other apps right now? Android route.
- Otherwise it is USB Direct. If Polylute has to change the samples (EQ, ReplayGain or digital volume), that is Resonance. If not, it is Purity.
With Purity on and a DAC connected, crossfade, sound effects and speed are frozen, so the first question never sends the sound to Android. That is the point of Purity: see Purity and Resonance: two promises.

Why we built it this way
Android’s audio system is made to mix many apps together. That is useful for most people, but it means the system is allowed to change the signal on the way: mix it, change its volume, convert its rate. Polylute cannot see or control what it does. So to hand a DAC the file’s own samples, Polylute has to go around it.
That has a cost. Once the app talks to the DAC itself, it also has to handle the conversation Android would normally handle: the DAC’s clock, its volume, giving it back to other apps, and recovering when a DAC misbehaves. We think that is worth it, but it is real work and real risk, which is why the rest of the Concepts section exists. It also only works with DACs that follow the USB Audio Class 2 standard. For everything else (the phone speaker, Bluetooth, other DACs) the Android route is there and works as it does in any music app.
We chose to replace only the output, not the whole player. A second player of our own would be a second place for bugs in queues, seeking and decoding. Keeping one decoding path means a song decodes the same way on either road.
For the curious
For the curiousThe full order of the questions
The real order has two more rows than the diagram. After the three “Android sound” questions (crossfade, effect, speed), a diagnostic override in Maintenance can force the Android route, or hold Direct off. Those exist for testing, not for listening. Before the safe-moment question, Polylute also checks whether a previous attempt at Direct already failed for this DAC and this sample rate. If it did, it does not try again on every song change.
The question about changing the samples only counts EQ, ReplayGain and digital volume. Crossfade and sound effects are not about the samples at all: they are reasons Direct cannot be used, and they come first.
For the curiousWhy Polylute pauses instead of using the speaker
When Polylute has just given the DAC back to Android, Android takes a moment to register the USB output again. In that gap, playing would mean the speaker or a dead route. Polylute holds playback for a short wait, resumes if the USB output appears in time, and otherwise leaves you paused.