Once again, I moved to ALSA

When I got a new computer a while ago I installed PulseAudio (PA) on it since I wanted to comfortably use USB headset and switching between it and my system soundcard. PA worked somehow fine but there where some problems with my favourite music player (Music On Console) but it could be to some degree mitigated with a patch.

Later Archlinux pushed PipeWire as hard dependency of few packages I had installed (namely kwin and PulseEffects). I can remove kwin safely since I do not use KDE/Plasma and had it for testing and as a backup, but it is really a pity that PulseEffects would be gone since it is great program to play with audio effects on the fly. So switching back to pulse would get rid me of these nice programs (unless I hack the packages which is another work, so why to bother?). The other huge issue with PipeWire is that it has some problems with playing audio.
When I start playing (or seek) some video it plays noise for a while until it catches up with something which is pain since PipeWire was advertised to me as a drop-in replacement for PA but it sucks even more.

So I decide to get rid of all that mess and use only ALSA. The basic switch was easy and almost none configuration was required. But I encountered 2 problems about which I wish to write about.

PulseAudio allows in its mixer to disable system sound which works nicely but ALSA does not have such feature (as long as I am aware of) and I have to disable sound effects for everything manually. In graphical session I use mostly Qt based programs and there was an annoying sound effect played whenever some pop-up window showed up. I searched hard and I was unable to find a solution on the internet and I found that Qt itself does not contain these audio effects and that they are part of some theme (or style), in my case it was part of Oxygen (maybe my configuration is somehow set up to use oxygen and I am not aware of that). After removing Oxygen from my system the sound effects are gone and silence returned.

All this I found after going almost mad and catching straws on the internet. My last straw which allowed me to fix this problem was that it should load “*.ogg” file so I started searching for such files and after few tries it bore fruits.

The search command I used is:

find /usr -iname "*\.ogg"

Second thing was default audio support in Wine which can be easily solved by running winetricks for given wine prefix.

winetricks settings sound=alsa

Articles from blogs I follow:

Richard Stallman's political discourse on sex

Richard Stallman, the founder of the Free Software Foundation, has been subject to numerous allegations of misconduct. He stepped down in 2019, and following his re-instatement in 2021, a famous open letter was published in which numerous organizations and i…

via Drew DeVault's blog November 25, 2023

Upgrading to FreeBSD 14 - how to fix a broken BIOS bootcode

A lot of people running ZFS zroot have managed to break their FreeBSD systems upgrading from 13.2 to the new 14.0 release because of a broken BIOS bootcode. In this tutorial I'll show you how you can fix that without having to reinstall.

via unixsheikh.com November 22, 2023

C++ Guidelines

C++ is definitely a language that has Lots of Ways to do It – kind of like Perl’s TIMTOWTSAC. A consequence is that when writing code, you need to think about which way to do things. When context-switching between projects, employers, or what-have-you, yo…

via [bobulate] November 21, 2023

Generated by openring