View previous topic :: View next topic |
Author |
Message |
coffeecat n00b
Joined: 17 Jun 2003 Posts: 54
|
Posted: Fri Oct 03, 2003 12:19 am Post subject: How to use alsa with two devices? |
|
|
I have a microphone on device 0 and a sound card on device 1. How do I tell aplay and xmms and such to play sound on device 1? It currently refuses to play sounds, I think because it's trying to play them on the mike. |
|
Back to top |
|
|
Herodot Guru
Joined: 29 Jul 2002 Posts: 429 Location: Professor Xavier's school for gifted youngsters
|
Posted: Fri Oct 03, 2003 12:55 am Post subject: Re: How to use alsa with two devices? |
|
|
coffeecat wrote: | I have a microphone on device 0 and a sound card on device 1. How do I tell aplay and xmms and such to play sound on device 1? It currently refuses to play sounds, I think because it's trying to play them on the mike. |
I don't think that's probable, but you never know...
Please post your /etc/modules.d/alsa.
Your first device is hw:0, second is hw:1. Your .asoundrc file defines what alsa programs sees on these two devices. If you don't have such a file (or /etc/asound.conf) ALSA usually makes a qualified guess. I've never seen it confuse in and out. _________________ Excelsior! |
|
Back to top |
|
|
coffeecat n00b
Joined: 17 Jun 2003 Posts: 54
|
Posted: Fri Oct 03, 2003 1:26 am Post subject: |
|
|
I don't have .asoundrc or /etc/asound.conf. Here's /etc/modules.d/alsa:
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
alias snd-card-0 snd-via82xx
alias snd-card-1 snd-usb-audio
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd cards_limit=2 |
|
Back to top |
|
|
|