SDL doesn't play nice with esd (tries to open /dev/dsp directly)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libsdl1.2 (Ubuntu) |
Fix Released
|
Medium
|
MOTU |
Bug Description
Since the ubuntu desktop uses ESD (or another audio multiplexing daemon) by default, it would be nice if apps shipped expecting (or at least adapting to) that configuration.
For SDL applications, the easy fix is to change the default backend to libsdl1.
The default SDL backend for Breezy is OSS, resulting in the following issue reported against pygame:
Since the ubuntu desktop uses ESD (or another audio multiplexing daemon) by default, it would be nice if apps shipped expecting (or at least adapting to) that configuration.
Amusingly enough, disabling the sound with "-q" results in the same exception, although the man page suggests:
-q Begin with sound disabled.
"strace -eopen pathological" reveals:
open("/dev/dsp", O_WRONLY|
open("/dev/dsp", O_RDWR|O_NONBLOCK) = -1 EBUSY (Device or resource busy)
Traceback (most recent call last):
open("/
File "/usr/share/
setup_
open("/
File "/usr/share/
pygame.
pygame.error: No available audio device
Changed in pathological: | |
assignee: | nobody → motu |
Changed in pygame: | |
status: | New → Fixed |
Changed in pygame: | |
status: | Fixed → New |
description: | updated |
summary: |
Since the ubuntu desktop uses ESD (or another audio multiplexing daemon) by default, it would be nice if apps shipped expecting (or at least adapting to) that configuration. - Amusingly enough, disabling the sound with "-q" results in the same - exception, although the man page suggests: - - -q Begin with sound di... + For SDL applications, the easy fix is to change the default backend to + libsdl1.2debian-alsa, rather than libsdl1.2debian-oss |
Changed in libsdl1.2: | |
status: | New → Fixed |
This is bug related to many many programs in Linux comunity. /dev/dsp till now hasn't been handeld very well. ALSA introduced dmix wich allows users to have esd/polyaudio/arts daemon running, but still be able to open old apps that request direct access to /dev/dsp.
Now I'm watching movie inside Xine (with ALSA backend), mp3 in totem (with polyaudio) and recording music with audacity (direct access to /dev/dsp). So, this should be fine in Breezy.