At Wed, 19 May 2004 00:13:58 +0200,
Aner Gusic wrote:
> 
> * Takashi Iwai <[EMAIL PROTECTED]>:
> 
> > doesn't it work like below?
> > 
> >     % aplay -Dfront some-2ch.wav
> >     % aplay -Drear some-2ch.wav
> 
> You missunderstood me, I want to use one player to play regular mp3's
> and be able to hear it on both front and rear speakers.  Even if I
> could sync that thing above it would be a very ugly solution to my
> problem. 
> 
> Så, "aplay some-2ch.wav" works fine, except for the fact that rear
> volume is initialized to 0.  I can get some other routing channels
> with a swich so rear volume isn't used, but then rear and front volume
> aren't independent (se my first mail for details)  :/ .

ok, then you need something similar like below:

pcm.dup4ch {
        type hooks
        slave.pcm {
                type hw
                card 0
                device 0
        }
        hooks.0 {
                type ctl_elems
                hook_args [
                        {
                                name "Rear Path"
                                preserve true
                                value true
                        }
                        {
                                name "PCM Reverb Playback Volume"
                                index { @func private_pcm_subdevice }
                                preserve true
                                value 127
                        }
                ]
        }
}       


then run "aplay -Ddup4ch some-2ch.wav"


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to