mini-eq icon indicating copy to clipboard operation
mini-eq copied to clipboard

[Bug]: mini-eq can only work on the 48000Hz

Open emofalling opened this issue 2 months ago • 1 comments

Before opening

  • [x] I searched existing issues for a similar report.
  • [x] This is not a security vulnerability.

Affected area

PipeWire routing or default output following

Mini EQ version

0.8.7

Install method

pipx

Linux distribution and version

Gentoo Linux x86_64 Kernel 7.2.3-gentoo

Desktop/session

KDE Wayland

PipeWire and WirePlumber versions

1.6.8 0.5.15

Steps to reproduce

  1. Set your sound card's sample rate to 192000Hz
  2. Open mini-eq
  3. Open System-wide EQ
  4. Play your music or a test voice
  5. Change the band
  6. Then you'll realize that the EQ was actually set to the wrong frequency!

Expected behavior

No matter the sound card's frequency, the EQ should always be adjusted accurately.

Actual behavior

The EQ overall shifted the wrong frequency, and the frequency curve capturer also got generally misaligned. When the sound card's sampling rate is at 48000 Hz, this problem doesn't exist.

Logs or terminal output

(process:52168): Adwaita-WARNING **: 01:33:42.281: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
filter-chain PipeWire EQ ready: mini_eq_sink -> alsa_output.pci-0000_80_1f.3.analog-stereo
filter-chain PipeWire EQ ready: mini_eq_sink -> alsa_output.pci-0000_80_1f.3.analog-stereo
routed 1 stream(s) to mini_eq_sink
system audio routed to mini_eq_sink

When a bug occurs, pw-top:
S   ID  QUANT   RATE    WAIT    BUSY   W/Q   B/Q  ERR FORMAT           NAME                                                                                    
I   30      0      0   0.0us   0.0us  ???   ???     0                  Dummy-Driver
S   31      0      0    ---     ---   ---   ---     0                  Freewheel-Driver
S   59      0      0    ---     ---   ---   ---     0                  Midi-Bridge
S   62      0      0    ---     ---   ---   ---     0                  bluez_midi.server
R   65   4096 192000   3.9ms  47.5us  0.18  0.00    2   S32LE 2 192000 alsa_output.pci-0000_80_1f.3.analog-stereo
R   82   1024  48000 101.4us  71.4us  0.00  0.00    0    F32LE 2 48000  + Microsoft Edge
R   78      0      0 127.7us  10.5us  0.01  0.00    0         F32P 2 0  + mini_eq_sink
R   83      0      0   3.4us   3.5ms  0.00  0.16    0         F32P 2 0  + mini_eq_sink_output
R   91      0      0  15.3us  51.9us  0.00  0.00    0    F32LE 2 48000  = mini-eq-analyzer
S   66      0      0    ---     ---   ---   ---     0                  alsa_input.pci-0000_80_1f.3.analog-stereo

emofalling avatar Sep 15 '26 17:09 emofalling

Fixed in Mini EQ 0.8.8, now available on PyPI.

The EQ now uses PipeWire's native rate-aware biquad filters, so filter frequencies follow the actual processing clock instead of coefficients tied to 48 kHz. The response curve and new AutoEq requests also use the processing rate, with AutoEq caches separated by rate. This does not force your sound card to 192 kHz or any other rate.

The analyzer can still show a 48 kHz capture stream in pw-top: that is separate from the EQ processing clock and does not mean the EQ is limited to 48 kHz. We validated native 192 kHz processing with synthetic audio, including a 440 Hz bell and low-pass response, and completed routing/runtime and real-music checks. We have not tested your specific Gentoo/KDE hardware setup.

For your pipx installation, run pipx upgrade mini-eq, confirm version 0.8.8, and restart Mini EQ. Please retry at 192 kHz; if frequency alignment is still wrong, reply with fresh pw-top output and the filter settings so we can reopen and investigate. The Flathub update is a separate publishing step.

bhack avatar Sep 17 '26 14:09 bhack