Concepts
Hi-res and the Android route
What happens to very high sample rates on each road, and why only the Android route ever reduces one.
In short
- On USB Direct, Polylute never resamples. It asks the DAC to switch to the file’s own sample rate and sends the samples as they are.
- On the Android route, a file above 192 kHz is reduced before it reaches Android, with a careful filter, because Android’s audio path can be unreliable at those rates.
- If your DAC cannot take a file’s format, Polylute plays that song through the Android route instead.
- We have not tested 384 kHz.
How it works
| Road | What happens |
|---|---|
| USB Direct | Polylute asks the DAC to switch to the file’s rate and checks that the DAC’s clock is valid. It sends the samples at that rate. It does not reduce or resample anything. |
| Android route, up to 192 kHz | Polylute hands Android the file’s own rate. What Android’s audio system does with it next is up to the phone and its Android version. |
| Android route, above 192 kHz | Polylute reduces the rate first, by a whole factor (for example 384 kHz becomes 192 kHz), with a low-pass filter that removes what would fold back into the music. |
When the DAC cannot take a file
Before Polylute claims a DAC for a song, it checks that the DAC can carry the file’s format: the rate, the number of channels, and a container at least as wide as the file’s samples (see What “bit-perfect” means here). If it cannot, Polylute does not try to squeeze the file in. That song plays through the Android route, and Track details and the Purity line say so. If a Direct attempt starts and fails for a file, Polylute does not retry it on every song change.
The reduction on the Android route
The reduction is a proper low-pass filter followed by dropping samples. It keeps the music flat across its passband and removes everything that could fold back into the audible range. It is the only place Polylute resamples at all, and it never runs on USB Direct, so it never touches Purity.
Files at or below 192 kHz are not touched by it.
Why we built it this way
Why reduce at all. Android’s audio path can end up in unstable device-specific states at rates above 192 kHz. We saw it hang while loading. A file that plays at a lower rate is better than a file that does not play. The cost is real: a reduced file loses what it carried above the new limit.
Why a filter, not an average. The simple way to halve a rate is to average pairs of samples. That is a very weak filter: ultrasonic content folds back into the audible range, and only a little quieter than it was. A proper filter removes it by a very large margin. We use the proper one, because folded noise lands in the music.
Why not on USB Direct. The whole point of Direct is that the DAC gets the file’s samples. If the DAC cannot take the rate, Polylute falls back to Android rather than resampling quietly.
For the curious
For the curiousThe filter
- The filter is a linear-phase windowed-sinc design, with at least 100 dB of rejection from the new Nyquist frequency upward.
- It is flat to better than 0.001 dB up to 80 % of the new Nyquist frequency: 76.8 kHz of a 192 kHz stream, which is more than three times what a person hears.
- Its own delay is taken out, so the output lines up with the input, and its tail is flushed at the end of the song.
- The factor is the smallest whole number that brings the rate to 192 kHz or below. The filter works on 16-bit and floating-point streams.