From: Lee Revell <rlrevell@joe-job.com>
To: Juan Zapatero <jazc@gmvsistemas.es>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: Mix audio at different frequencies
Date: Tue, 16 May 2006 16:49:20 -0400 [thread overview]
Message-ID: <1147812562.13948.144.camel@mindpipe> (raw)
In-Reply-To: <1147676786.2963.1.camel@jazc.fedora>
On Mon, 2006-05-15 at 09:06 +0200, Juan Zapatero wrote:
> What do you mean? Here is my .asoundrc, what has to be changed?
>
That ALSA already defaults to using dmix with the rate plugin since
version 1.0.9. It should work without an .asoundrc.
Lee
> # this makes native ALSA apps default to using dmix
> pcm.!default {
> type plug
> slave.pcm "duplex"
> }
>
> ctl.!default {
> type hw
> card 0
> }
>
> pcm.duplex{
> type asym
> playback.pcm "dmix0"
> capture.pcm "plughw:0,0"
> }
>
> pcm.dmix0 {
> type dmix
> ipc_key 219345 # any unique number here
> slave {
> pcm "hw:0,0"
> period_time 0
> #buffer_time 0
> period_size 2048 # jm: much smoother than 1024/8192!
> buffer_size 32768
> rate 44100
> }
> bindings {
> 0 0 # from 0 => to 0
> 1 1 # from 1 => to 1
> }
> }
>
>
>
>
>
> El vie, 12-05-2006 a las 14:10 +0200, Takashi Iwai escribió:
> > At Fri, 12 May 2006 12:25:41 +0200,
> > Juan Zapatero wrote:
> > >
> > > Hello,
> > > I need to mix in playback two different audio streams, one coming from
> > > an ogg player, which is at 44100Hz, and the other one, coming out of a
> > > VoIP application, in this case, at 8000Hz. As I am using the dmix plugin
> > > for mixing, I can't find out how to implement the resampling operations
> > > needed.
> >
> > Use plug or rate plugin. The default setting does it automatically,
> > too.
> >
> > Note that the rate plugin in 1.0.11 release has some bugs that was
> > already fixed on HG repo.
> >
> >
> > Takashi
>
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
> puede contener informacion clasificada por su emisor como confidencial
> en el marco de su Sistema de Gestion de Seguridad de la
> Informacion siendo para uso exclusivo del destinatario, quedando
> prohibida su divulgacion copia o distribucion a terceros sin la
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
> erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
> Gracias por su colaboracion.
> ______________________
> This message including any attachments may contain confidential
> information, according to our Information Security Management System,
> and intended solely for a specific individual to whom they are addressed.
> Any unauthorised copy, disclosure or distribution of this message
> is strictly forbidden. If you have received this transmission in error,
> please notify the sender immediately and delete it.
> ______________________
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
next prev parent reply other threads:[~2006-05-16 20:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-12 10:25 Mix audio at different frequencies Juan Zapatero
2006-05-12 12:10 ` Takashi Iwai
2006-05-15 7:06 ` Juan Zapatero
2006-05-15 10:03 ` Takashi Iwai
2006-05-15 11:25 ` Juan Antonio Zapatero Campo
2006-05-15 11:33 ` Takashi Iwai
2006-05-15 13:16 ` James Courtier-Dutton
2006-05-15 13:31 ` Takashi Iwai
2006-05-16 20:49 ` Lee Revell [this message]
2006-05-17 18:12 ` Thierry Vignaud
2006-05-17 19:04 ` Lee Revell
2006-05-26 8:22 ` Raise and lower volume through Alsa Api Juan Zapatero
2006-05-26 8:25 ` Benoit Fouet
2006-05-26 8:31 ` Juan Zapatero
2006-05-26 8:36 ` Benoit Fouet
2006-05-26 17:16 ` Lee Revell
2006-05-26 18:54 ` 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=1147812562.13948.144.camel@mindpipe \
--to=rlrevell@joe-job.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=jazc@gmvsistemas.es \
--cc=tiwai@suse.de \
/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.