Audio aliasing

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
Lunokhod
Lunatic
Lunatic
Posts: 468
Joined: 2017-04-20, 21:25
Contact:

Audio aliasing

Unread post by Lunokhod » 2021-09-06, 19:15

I have noticed some loud clicks at the start and end of audio clips on Duolingo. This is quite likely more of a system issue than browser issue. But while looking for some audio test things I found this page:
https://www.audiocheck.net/audiotests_aliasing.php
Both Firefox and Pale Moon display aliasing (a strange tuning a radio rising and falling weird siren type sound) during the test but Chromium doesn't. This could also be more of a system issue too, but who knows. Using Linux & Alsa, no Pulse. Just wondered if it was interesting given the recent audio discussions.
Wait, it's all Ohio? Always has been...

_yuyu_
Fanatic
Fanatic
Posts: 241
Joined: 2015-03-02, 14:18
Location: Moscow

Re: Audio aliasing

Unread post by _yuyu_ » 2021-09-06, 21:24

I hear no aliasing artifacts neither in PM nor in FF on my system.
Pale Moon 32-bit on Win 7 x64

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30895
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Audio aliasing

Unread post by Moonchild » 2021-09-07, 08:45

Sounds fine to me on my crappy on-board realtek audio and 2.1 speakers on Windows 10.
Maybe you want to check the output frequency set for your device. Certainly doesn't seem to be anything on our end.
"Just because you know something is going to break in the end, doesn't mean that it can't have an effect that lasts into the future. Joy. Wonder. Laughter. Hope. The world can be better because of what you built in the past." -- Tom Scott
Image

User avatar
plushkava
Apollo supporter
Apollo supporter
Posts: 46
Joined: 2015-07-31, 04:53
Location: Clown World

Re: Audio aliasing

Unread post by plushkava » 2021-09-17, 03:07

Lunokhod wrote:
2021-09-06, 19:15
Both Firefox and Pale Moon display aliasing (a strange tuning a radio rising and falling weird siren type sound) during the test but Chromium doesn't. This could also be more of a system issue too, but who knows. Using Linux & Alsa, no Pulse.
In the event that you are relying upon ALSA's software-based mixing, everything must be resampled to a particular frequency (usually 48 kHz). By default, ALSA tries to make use of the speexrate resampler, if available. This is a good, fast resampler. Otherwise, it resorts to using a crude linear resampler. The speexrate resampler is implemented as a plugin that is provided by alsa-plugins, so you should install this package if necessary. Beyond that, you could try coercing the use of the speexrate plugin by defining the following setting in /etc/asound.conf.

defaults.pcm.rate_converter "speexrate_medium"

I'm not sure why Chromium would behave as expected for a "no pulse" setup, because it's not really designed to work effectively without pulseaudio (which also uses speexrate).

User avatar
Lunokhod
Lunatic
Lunatic
Posts: 468
Joined: 2017-04-20, 21:25
Contact:

Re: Audio aliasing

Unread post by Lunokhod » 2021-09-17, 20:44

Installing alsa-plugins has fixed this, the aliasing artifacts are gone now. Thank you for this solution.
Wait, it's all Ohio? Always has been...

Post Reply