PolyluteDocs polylute.app

Concepts

What “bit-perfect” means here

An honest definition, how we checked it, what we measured, and what we have not.

On this page

In short

  • For Polylute, bit-perfect means the samples the DAC is handed are the file’s own samples: no resampling, no digital volume, no EQ, nothing added or removed.
  • We measured it on a HONOR LGN-NX3 with a SNOWSKY Melody, at four formats. Every sample matched. We have not measured everything, and the lists below say what.
  • The app shows Not measured for a Purity listen, on purpose. A check that runs in a development build cannot honestly turn into a “Yes” on your phone.
  • It is a claim about the samples handed to USB. It is not a measurement of the cable, the DAC or the sound you hear.

How it works

What we mean

A file holds samples: numbers that describe the sound at each instant. Bit-perfect, for us, means the numbers the DAC is handed are exactly those numbers. To get there, Polylute has to avoid everything that could change them. It does not resample, it applies no digital volume, no EQ and no ReplayGain, and it does not mix. This is what Purity guarantees on the software side: see Purity and Resonance: two promises.

Two details are worth knowing.

  • Making a container wider changes no value. A 16-bit file may travel in a 24-bit or 32-bit container on the USB wire. Polylute fills the wider container with the sample at the top and zeros below. The value is the same. The other way round never happens: Polylute does not squeeze a sample into a smaller container. If the DAC’s container is smaller than the file, Polylute does not use USB Direct for that file.
  • For MP3, AAC and other lossy files, it is the decoded samples. The player decodes the file into plain samples first, and those samples travel the same road. The claim is about those samples, not about the original compressed file.

How we checked

The check only exists in development builds. It works in two halves.

The reference, on a computerOn a computer, the music file is decoded by ffmpeg to plain PCM samples, and a fingerprint is made of the whole and of each block. On a computer The music file ffmpeg decodes it to plain PCM samples A fingerprint SHA-256, whole and in blocks The check, on the phoneOn the phone, in a development build, the same file plays through Polylute with Purity on. An observer takes a fingerprint of the audio bytes handed to USB. What happens after that hand-over, in the cable and the DAC, is not checked. On the phone · development build The same file Polylute, Purity on Observer at the USB hand-over fingerprints what USB is handed The cable and the DAC not checked
The check, in two halves. Amber marks the point where the phone’s own claim is tested. Dashed marks what is not checked.

In words

On a computer: the music file is decoded to plain samples with ffmpeg, and a fingerprint (SHA-256) is made of the whole and of each block.

On the phone, in a development build: the same file plays through Polylute with Purity on. An observer takes the same fingerprints of the audio bytes that Polylute hands to USB. A tool compares the two. What happens after the hand-over, in the cable and in the DAC, is not checked.

We call the result bit-perfect to the hand-over. It proves what Polylute sent to USB. It is not an electrical capture of the cable, and it says nothing about the DAC’s own processing.

What we measured

The measurement was done on a HONOR LGN-NX3 with a SNOWSKY Melody, with Purity on. We played one FLAC file for each format.

What was measured, and what was not
CaseResult
44.1 kHz, 16-bitEvery sample matched.
48 kHz, 24-bitEvery sample matched.
96 kHz, 24-bitEvery sample matched.
192 kHz, 24-bitEvery sample matched.
Two sample-rate switches on natural song changesEvery sample matched across them.
The start of every streamA short stretch of silence (about 128 ms) comes first. Then every sample matches. This is on purpose.
The Fosi Audio DS2 with the current PolyluteNot measured. It plays through USB Direct.
Seek, pause and skipNot covered. These fade by design, so they are not meant to match the file.
Two songs of the same rate in a row (gapless)Not covered.
384 kHzNot tested.
Any other DAC or phoneNot tested.
The Track details page for a 96 kHz, 24-bit FLAC file. The route reads USB Direct, Purity, and the equalizer is bypassed.
What the app does show. Track details names the road, the output rate and the processing, so you can see Polylute left the signal alone.

What the app says about it

In Stats, the Audio section has a Bit-perfect line for each listen. It says No when the signal was processed or did not go through USB Direct, and Not measured for a Purity listen. It has a Yes label too, but Polylute does not use it today: only a measurement of that very stream could justify it.

Why we built it this way

We did not want a label that only means “we did not knowingly change anything”, because that is a different claim from “it did not change”. Only the second is worth showing you.

So we split the two. Purity is the lock: it says Polylute is not allowed to change the samples. Bit-perfect is the result, and we only claim it where we measured it. That costs us a nicer-looking screen: the app says Not measured where it could have said “Yes”. We think a plain “not measured” is more useful than a green badge nobody can check.

The measurement itself is real but narrow. It lives in the development build because the observer that makes the fingerprints must not run on your phone. It stops at the hand-over to USB because that is as far as software can see.

For the curious

For the curiousThe silence at the start of a stream

Every new stream (a song start, or a switch to another sample rate) begins with about 128 ms of zero samples, rounded up to whole chunks of about a millisecond. In the measurements it was 6174 frames at 48 kHz, 5670 at 44.1 kHz, 12319 at 96 kHz and 24704 at 192 kHz. It is there so that the USB ring is never empty while the writer thread wakes up.

So the captured stream is silence followed by the track. The checking tool knows this: it first tries a strict comparison from the first byte, and, if that fails, looks for whole frames of zeros at the very start, up to a limit a little above the driver’s own. Zeros anywhere else, or any changed sample, still fail. The last moments of the track fall outside a capture that stops at the track’s expected length, as many as the silence.

For the curiousHow much of each song was captured

The 48 kHz file was captured from its start to its end, except the last tenth of a second or so, which fell outside the capture because of the silence in front. The 44.1 kHz and 96 kHz files were captured from the moment Play was pressed to their end, in one run with the sample-rate switches between them. The 192 kHz file was captured for its first minute and a half. In every capture, each block that was captured matched.

For the curiousHow the samples sit on the wire

On the Melody the USB slots are 32 bits wide for both 16-bit and 24-bit files. A 16-bit sample is shifted left by 16 bits, and a 24-bit sample by 8, so the value sits at the top of the slot with zeros underneath.

The check hashes only the audio bytes of each USB transfer that the system accepted, and keeps hashes, not the music. It is switched off by default and can be driven only from a computer, in a development build.

Tested on HONOR LGN-NX3 with SNOWSKY Melody