Lee Revell wrote:
> On Tue, 2006-04-11 at 21:21 -0400, Gaetan Lord wrote:
>> I now relying on alsa configuration and remove my .asoundrc.
>> In alsamixer
>> The front output is controlled by PCM and Master
>> The back output is controlled by Front and surround
>>
>> Is there any configuration, to allow the multi output to be controlled
>> by a single control.
>> If not, I will live with what I have, it does solve 99% of my
>> requirement.
>
> Good question - I don't think so. There are plans to allow defining
> "virtual" controls in alsa-lib but it's not done yet. You could write a
> script to change both controls at once with amixer. It would be helpful
> if the apps let you gang arbitrary controls, but I don't know of any
> that do it.
>
> You could use software volume control in XMMS.
>
> Lee
For those who try to get something similar, here's a quick summary of what
I'd like to do, and what I'm able to achieve. First, a big thank you to
Lee Revell, he help me to get this working.
I had a need to play on 2 different output with aplay or xmms. Also,
I'd like
to be able to play a single stream on both output, again with aplay or
xmms.
First, after looking at the doc and the news, I try many asoundrc setup. I
try doing this with 2 cards (SBlive and ICH5), and also from single
card. This
was done with alsa 1.0.10
The solution was to use a single card (SBlive), and connect an output on
the front, and the other on the rear. There is no need for an .asoundrc
configuration file.
Now to use it, the way I like.
Front output:
The volume is controlled with PCM and Master.
The device to use with aplay is plug:front ie, aplay -D plug:front file.wav
It is the same device on xmms, but the pulldown menu doesn't display that
device, so you override the name, and write plug:front. Yes you could write
a device instead of the pulldown choice. You could use Master or PCM to
control the volume
Rear output:
just replace "front" with "rear" for the device name.
The volume is controlled by the surround control
Single source, 2 output
The device is surround40, ie plug:surround40
This will output the sound to both output (rear and front)
As for the sound, this is more tricky. There is no way to control equally
both output . My understanding is the following
+ - - Master - - PCM - - > Front
|
source --> Front +
|
+ - - Surround - - > Rear
If you understand the diagram
Increasing Front will increase both output.
modifying surround will drive read
modifying Master and/or PCM will drive Front
note:
- mute PCM will only mute Front
- even with Front set to 0, there will be sound on rear, if surround have
a value greater than 0
- You could have many source going out , but there is no control on the
volume. Probably, softvol would do the job, but this will require an
.asoundrc
file. I try xmms soft volume, the sound was crappy.
I spend so many hour trying to get this working, and the solution was
so simple. I hope this will help other looking for this setup.
Thank you
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user