PolyluteDocs polylute.app

Concepts

Keeping volume safe

Why Polylute is so careful with a DAC’s volume: it only ever turns it down by itself, and it will not play at a level it cannot confirm.

On this page

In short

  • Many DACs start loud, or jump back to a loud level after a reset. A surprise at full volume is the one mistake you cannot take back.
  • So Polylute only ever turns a DAC down by itself, never up. A DAC it has never met is lowered to a quiet level before the first note.
  • If Polylute cannot read or confirm the DAC’s level, it does not play through that DAC.
  • Safety Max is your own volume ceiling. It is not a sound-level meter, and it is not a guarantee of safe listening.

How it works

On USB Direct, Polylute controls the DAC’s own hardware volume, in small steps, so the volume keys move the DAC’s volume and not a digital gain. That keeps the samples untouched on the way. It also puts a lot of weight on one question: what level is the DAC at when the first note arrives?

The rule when a DAC opens

The level rule when a DAC opensFour things are compared: what the DAC is at now, what you last chose on it, your Safety Max ceiling, and a quiet starting level if the DAC is new. Polylute takes the lowest of them, and only if it is lower than the DAC's level now. It writes that level and reads it back from the DAC. If the DAC confirms, music plays. If not, nothing plays. What the DAC is at now What you last chose on it Your Safety Max ceiling A quiet start, if the DAC is new The lowest of them, and only if lower than now Write it, then read it back from the DAC Did the DAC confirm it? no Nothing plays yes Music plays
Before the first note. Amber marks the rule: the lowest level wins, and it only ever lowers.

In words

Polylute compares four things: what the DAC is at now, the level you last chose on it, your Safety Max ceiling, and a quiet starting level if it has never met this DAC. It takes the lowest of those, and only writes it if it is lower than the DAC’s level now. It then reads the level back from the DAC. If the DAC confirms it, the music plays. If not, nothing plays through that DAC.

The same rule runs every time Polylute takes hold of a DAC: at a plug-in, after a change of sample rate, after a recovery, and when it takes the DAC back from another app. After an Android handover a DAC can come back at a level that was not the one you left it at, so Polylute does not trust what it finds.

A DAC Polylute has never met

If Polylute has no record of a DAC (you never chose a level on it, and no Safety Max was set for it), it lowers the DAC to a quiet level before any audio reaches it, and shows a notice: This DAC is new to Polylute: lowering its volume…. You raise it with the volume keys. It costs you one step the first time. We think it is a fair price.

Safety Max

Safety Max is a volume ceiling you set per pair of headphones and per output. Normal volume changes stop at the ceiling, and the screen says Safety Max reached. It does not measure sound pressure, and it cannot tell you what is a safe level for your ears.

The Safety Max Volume page: the ceiling for the current output, a slider, and a switch for the headphone profile.
The ceiling is yours. You set it with your own headphones on.

You can go past it on purpose, with a temporary override. The override ends when you lower the volume back to your maximum, after some minutes without playing, or when you change headphones or output. It belongs to the DAC’s connection, so a quick rebuild of the stream, for example at a change of sample rate, does not cancel it. With the screen off or the phone locked there is no gesture for it: a volume key pressed at the ceiling is refused, and the notice says Safety Max · unlock to go higher. With another app in front, Polylute shows a notice with Raise the limit (it needs permission to show notifications).

A DAC with its own knob

The buttons or wheel on some DACs cannot be read over USB. Polylute cannot see them and Safety Max does not limit them. If your DAC has one, turn it all the way up first, the worst case, and only then set Safety Max. A ceiling set with the knob low stops protecting you the moment the knob goes up.

For a device whose volume Polylute cannot set at all, it asks once whether the device has its own volume control. If it does, you choose Resonance, where Polylute’s own volume starts low, or Purity, where the device plays at its full level. If it has none, only Resonance is offered.

Ducking

When a navigation prompt or a notification sound asks other audio to duck, Polylute lowers its sound. In Resonance, it lowers a digital gain with a smooth ramp. In Purity, the samples may not change, so it lowers the DAC’s own volume in steps and then returns it to exactly the level it left, never higher and never above your ceiling. If the DAC has no volume Polylute can set and verify, or too little room to go down, Polylute pauses and resumes instead.

Why we built it this way

Many DACs start at full volume, or jump back to it after a reset. We saw one come back at full level after Android had used it. So Polylute only ever turns a DAC down by itself, never up, and it lowers a DAC it has never met to a quiet level before the first note.

That costs you a step: on a new DAC you raise the volume yourself the first time. We think that is a fair price. A surprise at full volume is the one mistake you cannot take back.

Nothing plays that cannot be confirmed. If Polylute cannot read the DAC’s level, or the DAC does not take the lower level it was asked for, Polylute holds playback instead of hoping. That can mean a play that does not start, with a message saying why. We would rather you press Play twice than hear a loud surprise once.

A ceiling you cannot lift by accident. A ceiling that a stray key press from a pocket can lift is not a ceiling. So the override is a deliberate gesture, it ends by itself, and it does not exist with the screen off.

No claims about your ears. Safety Max is a number you chose. Polylute does not measure sound pressure and does not know your headphones. The page says so because it is true.

For the curious

For the curiousThe numbers
  • The volume steps are about 2 dB each, rounded up to a whole number of the DAC’s own units so every step is a level the DAC can hold.
  • The quiet first-use level is −30 dB, or the DAC’s quietest level if its whole range is louder than that.
  • A level that falls between two steps is shown as the quieter one, and counted as the louder one when Polylute checks that a write took.
  • Ducking is 12 dB in Resonance. A duck of less than 6 dB is not useful for a spoken prompt, so Polylute pauses instead.

Tested on HONOR LGN-NX3 with SNOWSKY Melody