#92

Wrong sample rate parameter in eq-w0.py call causes silent Graphic EQ

Opengokuscraperopened 4mo ago

build/eq-w0.h: scripts/eq-w0.py mkdir -p build $(PYTHON) scripts/eq-w0.py build/eq-w0.h 8

The second argument 8 is the sample rate (Hz), but the actual audio processing uses 48000 Hz. This produces garbage filter coefficients in build/eq-w0.h, causing the Graphic EQ effect to output silence.

The other header generation scripts (log2.py, pow2.py, quarter_sine.py) also take 8 as their second argument, but for those it means step_shift = 8 (table size 2^8 = 256 entries), which is correct. This 8 was likely copied to eq-w0.py by mistake.

Fix: Change 8 to 48000 on that line:

-	$(PYTHON) scripts/eq-w0.py build/eq-w0.h 8
+	$(PYTHON) scripts/eq-w0.py build/eq-w0.h 48000

Activity

1
gokuscraper4mo ago