feat(audio): optimize equalizer with stereo support and gain caching
Some checks failed
Build and Release / build-linux (push) Failing after 33s
Build and Release / build-windows (push) Failing after 4m2s
Build and Release / release (push) Has been skipped

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-17 20:49:16 +01:00
parent 711eb148df
commit be929ce55a
5 changed files with 203 additions and 138 deletions

View File

@@ -83,7 +83,7 @@ func CalculateEQBands(samples []int16, sampleRate int) []float64 {
// Normalize output for visualization (0.0 to 1.0)
// We need some scaling factor. Based on expected signals.
const scale = 50.0 // heuristic
const scale = 10.0 // Reduced from 50.0 to fix saturation
for i := range bands {
bands[i] = bands[i] * scale
if bands[i] > 1.0 {