LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2006, 01:44 PM   #1
DarthBane
LQ Newbie
 
Registered: Jun 2004
Posts: 6

Rep: Reputation: 0
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
 
Old 07-27-2006, 05:26 AM   #2
DarthBane
LQ Newbie
 
Registered: Jun 2004
Posts: 6

Original Poster
Rep: Reputation: 0
There are sound cards that have a digital input and digital output. And they have four analog outputs and a Line-In. So, the hardware is not the problem.

I just don't know where to look for hints.


Maybe I should link the two inputs with a mixer and mute just one of them. This "simulates" Switching. Could this work?

What about the digital input. What if there is a stream with just 2 channels (stereo). Will there be an Error (like unknown channels 3)?

grrr.

db
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can listen music but not all applications sound... hgb Debian 10 07-21-2006 02:08 PM
Sound in general for ALSA/Digital sources. purelithium Linux - General 1 12-02-2005 01:36 PM
cannot play sound from different sources at the same time with ALSA mrosati Linux - Software 2 09-21-2005 04:04 PM
HOWTO:Patching new ALSA sources into kernel source for new sound cards detection? deepclutch Debian 1 07-17-2005 11:49 AM
My sound sounds like snow when trying to listen to xmms MultiUser Linux - Newbie 2 03-25-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration