Sound support on linux

While playing the Civ beta, I’ve noticed that it refuses to play sound
while the E sound daemon is active. If I put it in standby first, then it
civ will play sounds. That’s not too surprising, but the esddsp wrapper
also doesn’t work for civ (which I’m guessing is an SDL thing).

The esd wrapper is supposed to preload some libraries which mimic /dev/dsp
for the application. Is SDL capable of playing on that, and if not, is
there anything that can be done about it?

Also, while SDL runs fine on ALSA’s OSS emulation, an ALSA mode would be
nice. I’ll do that (if no one beats me to it) once I free up some time.

Perhaps an esd layer for sound would be a good solution, too. However,
probably (OSS or ALSA) and esd would need to be compiled in, and some code
to determine which to use (esd if available, then the other, if not).

Justin Bradford
@Justin_Bradford

While playing the Civ beta, I’ve noticed that it refuses to play sound
while the E sound daemon is active. If I put it in standby first, then it
civ will play sounds. That’s not too surprising, but the esddsp wrapper
also doesn’t work for civ (which I’m guessing is an SDL thing).

Yeah. I noticed that esd broke almost all of my /dev/dsp programs. A
few things worked (like x11amp) but others didn’t. esd didn’t like to
play fair with my sound card. However, when I upgraded to the latest
RPMS of GNOME, the problem went away. My current esd command line is:

esd -nobeeps -as 30

x11amp works great, GAIM (No esd support) works great now. My esd is
0.2.12.

The esd wrapper is supposed to preload some libraries which mimic /dev/dsp
for the application. Is SDL capable of playing on that, and if not, is
there anything that can be done about it?

Upgrade esd if yours is older than the one I listed, and maybe try the
command line above. It might help.

Perhaps an esd layer for sound would be a good solution, too. However,
probably (OSS or ALSA) and esd would need to be compiled in, and some code
to determine which to use (esd if available, then the other, if not).

In my humble opinion, esd isn’t up to the task of a high-performance
sound system (at least on my system). It crackles and pops quite often
and cuts off sounds if another comes through. I much prefer the way
SDL handles sound currently. I even swiped a demo Sam wrote for the
SDL wav player and use it regularly. It sounds better than just about
anything else I have, and is more stable.On 21 Apr, Justin Bradford wrote:


| |/ | | | _ | | | mailto:@Knight_Walker |
| / | / / | | http://www.aros.net/~kwalker |
| \ | ___ | | |
| |\ | | / \ | | The Kobran Imperium (801)265-1299 |
|| || || || _____________________________________/