All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Aner Gusic <aner@lysator.liu.se>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: problems with the mixer
Date: Wed, 19 May 2004 12:26:42 +0200	[thread overview]
Message-ID: <s5hises1zml.wl@alsa2.suse.de> (raw)
In-Reply-To: <20040518221358.GA19254@sture.lysator.liu.se>

At Wed, 19 May 2004 00:13:58 +0200,
Aner Gusic wrote:
> 
> * Takashi Iwai <tiwai@suse.de>:
> 
> > 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

  parent reply	other threads:[~2004-05-19 10:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08 14:37 problems with the mixer (fwd) Aner Gusic
2004-05-11 11:07 ` Takashi Iwai
2004-05-14 18:05   ` problems with the mixer Aner Gusic
2004-05-14 18:23     ` Takashi Iwai
     [not found]       ` <20040518152453.GA18442@sture.lysator.liu.se>
2004-05-18 15:41         ` Takashi Iwai
     [not found]           ` <20040518221358.GA19254@sture.lysator.liu.se>
2004-05-19 10:26             ` Takashi Iwai [this message]
     [not found]               ` <20040519142648.GA21022@sture.lysator.liu.se>
2004-05-19 16:21                 ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hises1zml.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=aner@lysator.liu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.