ALSA - How to?: Two sound sources, but just listen to one?
Hi,
first I want to say that I dont like the ALSA-Wiki Doc Homepage. I'm working with linux about 5 years and after reading ALSA's Wiki's and Howto's I still don't understand the whole ALSA-thing.
Ok. Here we go:
This will be a "sound routing pc":
I'm planning to buy a soundcard which has 2 Inputs: a stereo (Line-in) and another (say a digital In) which is capable of > 4.0 .
The sound card must have one output (say a digital - spdif) which is connected to my Panasonic Receiver.
I want to write a program which just switches between the two input sources. I don't need a GUI or shell like. I just want to use the ALSA-API. (It's OK when the sound stops for 1 sec. when switching)The stereo signal can be upmixed to a 4.0 signal so I can use all of my 4 speakers.
(Maybe someone can point me to such a device with support for ALSA/Linux)
Here's my question:
How can I realize this?
I've read days about .asoundrc and this would be the first place where I would start.
Creating 2 pcm's:
#1 for upmixing stereo input and routing to spdif out.
#2 for routing input to spdif out
But I didn't find out how to link a input to some pcm's and so on... (As I pointed out: I am confused by the whole ALSA-Wiki-Doc Homepage).
Please, can someone enlighten me?
thx.
db
|