Bug #535

No sound with 36 kHz Ogg Vorbis file and enabled equalizer

Added by Thomas Lange over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:April 25, 2015
Priority:Minor Due date:
Assignee:- % Done:

100%

Category:libaudcore
Target version:3.6.2
Affects version:3.6.1

Description

As soon as the equalizer is enabled, there is no sound although the file itself is played usually.

An example file is attached. I have tested 3.5, 3.6 and 3.7-devel, they all show the same behavior.

15 - Metro Riots - Thee Small Faces.ogg (3.5 MB) Thomas Lange, April 25, 2015 00:27

Associated revisions

Revision e5d020c6
Added by John Lindgren over 2 years ago

Correctly limit the number of IIR filters. Closes: #535.

Revision 5b69f0f9
Added by John Lindgren over 2 years ago

Correctly limit the number of IIR filters. Closes: #535.

History

#1 Updated by John Lindgren over 2 years ago

Once again I am wishing I knew more about digital filters. There is some code that disables the higher frequency IIR filters for lower-rate audio to avoid this very problem, if I understand it correctly. Perhaps it is not quite right. I mean this bit of code in equalizer.cc:

    /* Calculate number of active filters */
    K = AUD_EQ_NBANDS;

    while (CF[K - 1] > (float) rate / 2.2)
        K --;

#2 Updated by John Lindgren over 2 years ago

  • Status changed from New to Closed
  • Target version set to 3.6.2
  • % Done changed from 0 to 100

#3 Updated by Thomas Lange over 2 years ago

Thanks for the fix. :)

Also available in: Atom PDF