Skip to contentSkip to conversation

Force mono audio playback to go through left channel.

DISCUSSION Juan Antonio Zapatero Campo 2 participants 2 messages Mar 3, 2006

lore
Share & tools
lore
#0 lore raw

Hello all,
first let me introduce a little bit what I am trying to do so that you can give me best help. I am building a onboard system for city-buses, which takes car of different tasks. Some of them are VoIP calling, audio reporting to passengers and external speaker. To make it possible through just one stereo soundcard, I need to force voice (the one caming out of alsa drivers) to go into one of stereo channels, let's say on the left one. Is there any way of performing this through the API?

Thanks a lot.
______________________
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

At Fri, 3 Mar 2006 13:50:25 +0100,

Quoted 8 lines · Juan Antonio Zapatero Campo

Hello all,
first let me introduce a little bit what I am trying to do so that you can give me best help. I am building a onboard system for city-buses, which takes car of different tasks. Some of them are VoIP calling, audio reporting to passengers and external speaker. To make it possible through just one stereo soundcard, I need to force voice (the one caming out of alsa drivers) to go into one of stereo channels, let's say on the left one. Is there any way of performing this through the API?

So, you want to use a single stereo (interleaved) stream to split to two mono streams? Some hardware supports it on hardware, but many don't.

A software solution is to run a dmix plugin as a backbone, then route to left or right via route plugin. If the realtime response matters, it might be better to use JACK, though.

Takashi

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