Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My Ensoniq 1371 is a nice card, but unfortunately does not do hardware mixing. I'm using ALSA 1.0.10, so dmix should be enabled by default... But it's not, and I am unable to play more than one sound at a time without using a sound server suck as ARTS (which results in a nice little delay). I've tried asound.conf and .asoundrc files from various places, and not a single one got dmix working. What the heck is wrong with dmix?
Okay, will try. Can that be put in asound.conf instead of .asoundrc though? Not a big problem, I just like to have ALSA stuff system-wide.
(In case it helps, the SB128 has a second channel - /dev/adsp. You have to manually tell applications to use this if you want them to use it when /dev/dsp is being used by something else, and it doesn't always work anyay.)
Well, there's a slight difference... Namely, that I now have to use OSS emulation or I get really crappy sound. But I still can't play multiple sounds at once, as shown by my attempt to use aplay and JuK at the same time:
Code:
[proteus@localhost ~]$ aplay /usr/share/sounds/alsa/Front_Center.wav
ALSA lib pcm_dmix.c:819:(snd_pcm_dmix_open) unable to open slave
aplay: main:544: audio open error: Device or resource busy
Well, sort of works. I can play two .wav files at the same time, and get sound from both, BUT I can't use aplay or anything else that uses the audio directly when aRTs is running. How does aRTs manage to hog /dev/dsp so completely? Is there a way to make it share, now that I can support multiple channels?
Edit: This is really damn weird - I can play two things at the same time with aplay, but BZFlag prevents XMMS from accessing /dev/dsp and vice versa. WTH?
Last edited by Lord Estraven; 12-02-2005 at 05:52 PM.
Originally posted by Lord Estraven How does aRTs manage to hog /dev/dsp so completely? Is there a way to make it share, now that I can support multiple channels?
Edit: This is really damn weird - I can play two things at the same time with aplay, but BZFlag prevents XMMS from accessing /dev/dsp and vice versa. WTH?
arts get a lock on /dev/dsp
and want everything to go tru arts (that's kinda what sound servers do)
so arts can't be running
after arts is not running try the alsa output on xmms
basically /dev/dsp was before when there was sound mixing and polling and OSS and possibly even alsa oss emulation locks /dev/dsp or it can (i never really figured it out) -- this is why arts was written in the first place. to fix /dev/dsp so it could do software mixing -- so try to make sure everything uses alsa set the setting using gstreamer for gstreamer apps and make sure all soundservers are not running (arts) (esd)
Reinstalled and switched to XFCE-svn, which doesn't use a sound server. Now dmix works without any config file. I have no idea why.
Anyway... Before, I had XMMS using the ALSA plugin, and BZFlag of course uses ALSA. I'm guessing that config files somewhere from the previous version of ALSA were preserved last time I upgraded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.