Windows Loudness Equalization, reverse-engineered and ported to PipeWire github....

@best

Windows Loudness Equalization, reverse-engineered and ported to PipeWire github.com · 101 points · 50 comments · HN thread

TL;DR A GitHub project ports Windows' Loudness Equalization to PipeWire on Linux, with a per-app automatic gain control and a look-ahead output limiter. The author reverse-engineered the Windows DLLs (WMALFXGFXDSP.dll and AudioEng.dll) and documents the algorithm in the README, including the loudness measure, gain targets, release times and limiter behaviour. The thread is split between people who want per-app volume leveling and objections to the project's reverse-engineering method and AI-assisted authorship.

  • Loudness Equalization evens out the volume of each application's playback stream, so quiet and loud passages sit at a similar level; it is applied per app, before the app's volume and mixing.
  • The loudness measure uses 25 frequency bands with a power-to-loudness formula, and the target gain is capped at +20 dB (min((1300/L)^1.6, 10)).
  • Release time is adjustable from 2 (fast) to 7 (slow), with 4 as the Windows default, giving roughly a 4.6 s time constant at the default.
  • A separate look-ahead limiter, ported from CAudioLimiter in AudioEng.dll, runs on every playback device and is always on, independent of the equalizer.
  • Settings are stored in a PipeWire metadata object and can be changed with pw-metadata or a small GTK3 window; specific apps can be excluded.
  • Requires PipeWire 1.4 or newer. Flatpak apps using PipeWire directly and JACK clients are not processed.

Discussion The thread is mostly debate rather than praise. Early comments question whether a loudness leveler is wanted at all, with some arguing that compressing dynamics harms music, while others say it is exactly what they want for movies, notifications and mixed app audio. Many commenters focus on the project's origin: whether reverse-engineering a proprietary DLL with an AI tool is legitimate, whether it counts as piracy, and whether it harms open source by making clean-room work look suspicious. A smaller group discusses alternatives such as EasyEffects and whether the algorithm is patented, and a few ask whether the Windows feature itself is still on by default. The mood is argumentative, with a fair amount of sarcasm about AI.

  • Per-app leveling is useful for mixed audio and movies (many): Commenters say notifications, background music and dialogue-heavy films vary too much in level, and they want apps balanced against each other. Some note that Windows also does this per app, and that it's convenient on Linux.
  • Leveling destroys musical dynamic range (some): Several argue that a composition's dynamics are intentional and that this should be disabled for music. They say it is only appropriate for listeners who want mastered recordings quieter or who can use visual alerts instead.
  • Reverse engineering with AI is piracy or unethical (some): Some call the port theft and say simply asking an AI to clone proprietary code is not craftsmanship. Others reply that reverse engineering is not inherently piracy and that the legal questions remain unclear.
  • Clean-room claims via AI are not credible (a few): Commenters doubt that using a model to write a spec and another to implement it counts as clean room, since the training data may include the original. Some joke about the legal risk.
  • Worry about harm to open source and a system-wide EQ default (a few): One commenter fears the project chills legitimate open source leveling work, and an audio engineer objects to a system-wide limiter that is always active. They hope it is not merged into PipeWire by default.
  • Existing tools like EasyEffects already do this (a few): Some point to EasyEffects and existing compressor filters, and one asks what the difference is from a plain compression filter. Replies note that the algorithm is a spectrally weighted loudness measure, as in ITU-R BS.1770.

Links from the comments

#linux #pipewire #audio #reverseEngineering #aiGeneratedCode #loudness