damerell: NetHack. (Default)
damerell ([personal profile] damerell) wrote2008-10-27 01:48 am

Soundcards

It seems I want a new soundcard with some hardware acceleration.

City of X, which I seem to have started playing again, doesn't have any cap on the maximum number of sounds played. In complex situations - sound on, runs like a drain. Sound off, all fine.

Currently I'm using the motherboard's AC97, which I infer is not particularly shiny. What I'm hoping one of you can tell me is this - if I want to spend a modest sum of money, like about 30 quid, is there anything I can usefully buy? I'm guessing I don't need _much_ improvement, because this only seems to affect a small number of people with ancient or basic soundcards.
simont: A picture of me in 2016 (Default)

[personal profile] simont 2008-10-27 09:04 am (UTC)(link)
My last Linux box had a motherboard soundcard until (for reasons I don't recall) I upgraded it to an SB Live for not very much money. One effect of this, which surprised me, was that /dev/dsp suddenly stopped being a one-process device: where previously the second process to try to play a sound would bomb out with some sort of "device already in use" error, suddenly multiple processes were capable of opening /dev/dsp simultaneously and playing sounds of their choice, and they all came out of my speakers smoothly mixed together. Even when they had different bit depths and sample rates going in. I infer that (discarding the hypothesis that the Linux kernel contains some particularly amazing software mixing which for no adequately explained reason is only enabled for a certain subset of sound cards) the SB Live, unlike my previous sound card, has the built-in capability to support multiple sound output channels coming from the CPU and mix them in hardware, probably post-DAC.

I have no direct evidence to suggest that this would also help your gaming problems; high-end PC gaming is not my thing. But it seems plausible to me that a card which can do what I observed on my Linux box would also be able to do the thing it sounds as if you need.

This was all a few years ago, and the SB Live was cheap then. I can only assume it's either cheaper or obsolete now.

[identity profile] oneplusme.livejournal.com 2008-10-27 09:11 am (UTC)(link)
Old SB Live cards should certainly be cheap to pick up second-hand; they certainly have hardware acceleration and multi-channel support. (Sadly somebody already got mine, though.) Be wary of the newer SB Audigy Foo cards, though, since I think Creative have been reticent about releasing any sane specs for Linux driver authors. This page is your friend.

I suspect you might actually find that Linux will do soft-mixing by default for less-capable sound chips these days. IIRC the ALSA guys were careful not to force software mixing (a la Windows) on in the kernel so as not to impose latency on people with decent hardware. Lately, however, it enables software mixing in the userspace libraries by default (where you can turn it off if you're doing Crazy Audio Stuff). Hence even my on-board AC97/Azalia chips are perfectly happy to play multiple streams simultaneously.
ext_8103: (Default)

[identity profile] ewx.livejournal.com 2008-10-27 09:11 am (UTC)(link)
Are you sure you didn't switch software from OSS to ALSA at the same time? I thought that the single-writer limitation in OSS was inherent to the software.
simont: A picture of me in 2016 (Default)

[personal profile] simont 2008-10-27 09:17 am (UTC)(link)
I'm pretty sure. I was using hand-compiled kernels as is my usual practice, and as far as I can remember I just ticked the SB Live box, recompiled and rebooted.

[identity profile] madaussie.livejournal.com 2008-11-02 12:00 am (UTC)(link)
I got a xonar d2x or whatever the PCIE cutdown model is. thing rocks.works like a charm on my ubuntu box.