1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-13 13:56:46 +00:00
wiki.mbirth.de/know-how/software/linux/_posts/2010-02-12-alsa-to-pulseaudio-for-flash.md
2015-03-09 11:55:07 +01:00

1.3 KiB

title layout created updated toc tags
ALSA → PulseAudio for Flash and others default 2010-02-12 22:07:22 +0100 2010-02-12 22:23:31 +0100 false
know-how
software
linux
sound
alsa
pulseaudio

One huge problem in a standard Ubuntu install is that not all programs are actually using the PulseAudio daemon but instead still use ALSA. This is especially true with the flashplugin. Since PulseAudio and ALSA can't use the hardware device at the same time, they block each other which leads to hangs and maybe even crashes of programs (e.g. browser).

The fix is relatively easy and consists of telling ALSA to use its pulse plugin for output - which routes the sound to PulseAudio instead of directly to hardware. It is explained at pulseaudio.org.

Basically you only have to create a file /etc/asound.conf with these few lines:

pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

This tells all ALSA apps to use the PulseAudio output by default. Some notes may also be found on wiki.ubuntu.com.

You should also check that you have installed libsdl1.2debian-pulseaudio instead of the -alsa one.

*[ALSA]: Advanced Linux Sound Architecture