Skip to contentSkip to conversation

Mix two mono streams into one stereo.

DISCUSSION Juan Zapatero 2 participants 2 messages Mar 7, 2006

lore
Share & tools
lore
#0 lore raw

I need some help with this. I have written a VoIP application which captures audio from a microphone input, and plays audio coming through the network to de audio output.

This application is intended to run on a system with a sound-card that has only one stereo output, and two different audio streams have to be played both at the same time through this stereo output. So I need to mix both mono streams into one stereo stream using ALSA Api.

How is this possible?

Juan Zapatero.

______________________
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.
______________________

#1 lore raw
Quoted 10 lines · Juan Zapatero

I need some help with this. I have written a VoIP application which captures audio from a microphone input, and plays audio coming through the network to de audio output.

This application is intended to run on a system with a sound-card that has only one stereo output, and two different audio streams have to be played both at the same time through this stereo output. So I need to mix both mono streams into one stereo stream using ALSA Api.

How is this possible?

Just use JACK, this exposes the two output channels as independent ports, and write your app as a JACK client (or multiple clients)

Lee

-------------------------------------------------------
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