Open TonalidadeHidrica opened 2 years ago
I would not classify these programs as ill-behaved. For example Chromium always using ALSA. You are only getting sound with Chromium via above described method. In conclusion, I do support your idea.
Can it be extended to solve the problem due to the missing of /dev/snd/seq
?
I saw similar error in random programs e.g. mame
or aconnect -o
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
can't open sequencer
Can confirm this fixed my audio issue in google-chrome.
Is your feature request related to a problem:
Some programs that make sound talk directly to ALSA instead of PulseAudio. WSLg supports PulseAudio but not ALSA. As a result, we cannot hear audio from such an application.
Describe the solution you'd like:
There is a plugin of
libasound2
(ALSA library) that transfers a connection to ALSA onto PulseAudio. The plugin is calledpulse
. So what we need is to install the plugin by running$ apt install libasound2-plugins
and enable it manually by editing
~/.asoundrc
pcm.default pulse ctl.default pulse
Finally, restart the WSL system.
I think this should be the default configuration so that you can use such ill-behaved programs out-of-box.
Describe alternatives you've considered:
Alternatively, we can let users perform those steps manually, at least now that we do have a description here...
Additional context:
No response
This exactly solved my problem with getting Alsa sound working in a Docker image on WSL2. Thank you!
Is your feature request related to a problem:
Some programs that make sound talk directly to ALSA instead of PulseAudio. WSLg supports PulseAudio but not ALSA. As a result, we cannot hear audio from such an application.
Describe the solution you'd like:
There is a plugin of
libasound2
(ALSA library) that transfers a connection to ALSA onto PulseAudio. The plugin is calledpulse
. So what we need is to install the plugin by runningand enable it manually by editing
~/.asoundrc
Finally, restart the WSL system.
I think this should be the default configuration so that you can use such ill-behaved programs out-of-box.
Describe alternatives you've considered:
Alternatively, we can let users perform those steps manually, at least now that we do have a description here...
Additional context:
No response