From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Revell Subject: Re: Mix audio at different frequencies Date: Tue, 16 May 2006 16:49:20 -0400 Message-ID: <1147812562.13948.144.camel@mindpipe> References: <1147429541.26309.3.camel@jazc.fedora> <1147676786.2963.1.camel@jazc.fedora> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1147676786.2963.1.camel@jazc.fedora> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Juan Zapatero Cc: Takashi Iwai , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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? >=20 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" > } >=20 > ctl.!default { > type hw > card 0 > } >=20 > pcm.duplex{ > type asym > playback.pcm "dmix0" > capture.pcm "plughw:0,0" > } >=20 > 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 > } =20 > bindings { > 0 0 # from 0 =3D> to 0 > 1 1 # from 1 =3D> to 1 > } > } >=20 >=20 >=20 >=20 >=20 > El vie, 12-05-2006 a las 14:10 +0200, Takashi Iwai escribi=F3: > > At Fri, 12 May 2006 12:25:41 +0200, > > Juan Zapatero wrote: > > >=20 > > > Hello, > > > I need to mix in playback two different audio streams, one coming f= rom > > > an ogg player, which is at 44100Hz, and the other one, coming out o= f a > > > VoIP application, in this case, at 8000Hz. As I am using the dmix p= lugin > > > for mixing, I can't find out how to implement the resampling operat= ions > > > needed. > >=20 > > Use plug or rate plugin. The default setting does it automatically, > > too. > >=20 > > Note that the rate plugin in 1.0.11 release has some bugs that was > > already fixed on HG repo. > >=20 > >=20 > > Takashi >=20 >=20 > ______________________ > 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=20 > Informacion siendo para uso exclusivo del destinatario, quedando=20 > prohibida su divulgacion copia o distribucion a terceros sin la=20 > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje=20 > erroneamente, se ruega lo notifique al remitente y proceda a su borrad= o.=20 > Gracias por su colaboracion. > ______________________ > This message including any attachments may contain confidential=20 > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are address= ed. > 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. > ______________________ >=20 >=20 > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, securit= y? > 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 Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=12164= 2 > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-devel >=20 ------------------------------------------------------- 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 ea= sier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642