Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ok, I'm setting up a digital DJ system with a M-Audio Revolution 7.1 with alsa on Arch Linux. I want to be able to play songs from one player through the main speakers while preview other songs over the headphones. I got asound.conf all set up and I can sucessfully play two songs at the same time by doing:
aplay -D main song1.wav
in one console and:
aplay -D preview song1.wav
in another. I want programs like XMMS and amaroK to use these two asound definitions because they go to different channels and convert the format, but I can't figure out how to make the them do it.
With amaroK using gstreamer I can specifiy device (default is /dev/dsp) and parameters. With XMMS only default is in the slector box, but the device (default /dev/dsp) can also be altered.
How can I get my progs using the asound definitions?
Some programs use OSS for sound output (/dev/dsp is OSS), other program use ALSA (like aplay). Most people use OSS emulation to map /dev/dsp to ALSA, but that doesn't use your asound.conf. One option is to use aoss instead to emulate /dev/dsp.
A better option for XMMS is to use the ALSA output plugin. Chances are that this is already installed, but you didn't select it. Go to the perferences dialog in XMMS, and select ALSA as your output plugin. Click the configure button. Change audio device to main or preview in your case.
Thanks for the reply, that really clears things up for me.
After putting the main user in the audio group (apparently OSS doesn't care but ALSA does) XMMS didn't have any trouble outputting through preview using the ALSA output plugin. So that works how I want it now.
Only trouble now is that I'm trying to run two instances of XMMS with different configurations. Seems to me that the only way to do this as the same user is to actually change the ~/.xmms folder before starting each instance (overwriting current configs with two sets of old ones.) Of course I can still run the second instance as root, but I don't want to type a password for sudo in my script and although I doubt it would harm anything, it doesn't seem like always running an app as root is a good idea. I also tried using 'really' (part of chiark-utils) to run xmms as a different user, but I had little sucess with that. Any ideas?
Oh BTW, I did get that script working, but I'd rather keep current configuration for each instance if possible.