No sound with pulseaudio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
swfdec0.6 (Baltix) |
New
|
Undecided
|
Unassigned | ||
swfdec0.6 (Mandriva) |
Unknown
|
High
|
|||
swfdec0.6 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Bug Description
When using either swfdec-player or the swfdec mozilla plugin, I don't hear any sound when using pulseaudio and a /etc/asound.conf as follows:
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
Other ALSA clients (e.g. alsaplayer) appear to work fine with this pulseaudio setup. When enabling or disabling sound in the flash viewer, the console prints the message:
Failed setting access
and the flash plays, but I hear no sound. I see no entry for swfdec-player in the list of pulseaudio clients in paman.
If I shut down the pulseaudio demon, and remove the asound.conf file, swfdec-player plays sound correctly via the ALSA hw device.
On an up-to-date as of 7th April 2008 version of Hardy with:
libswfdec-0.6-90 0.6.2-1
pulseaudio 0.9.10-1ubuntu1
libasound2-plugins 1.0.15-1ubuntu3
Changed in swfdec0.6: | |
status: | Unknown → In Progress |
Changed in swfdec0.6: | |
status: | In Progress → Invalid |
Changed in swfdec0.6 (Mandriva): | |
status: | Invalid → Unknown |
Changed in swfdec0.6 (Mandriva): | |
importance: | Unknown → High |
Checking the source for libswfdec, the problem appears to be that it tries to mmap the audio buffer, which I don't think works with the alsa pulseaudio driver. See swfdec_ playback_ alsa.c line 221:
if (snd_pcm_ hw_params_ set_access (ret, hw_params, SND_PCM_ ACCESS_ MMAP_INTERLEAVE D) < 0) {
g_printerr ("Failed setting access\n");
goto fail;
}
OTOH, swfdec does have a pulseaudio driver, which can be selected by passing --with-audio=pa to configure. With this setting enabled, sound works fine.