how to convert stereo-> mono signal during record

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm writing to you in despair, it's been 5 days I've tried a lot of  
things, none is working.

My soundcard cannot handle recording on just one channel (it's a USB  
card). I'm running ubuntu Hardy 8.04 with kernel 2.6.24.rt .

The problem is that the program I'm running is written to be use with  
mono audio stream, and I don't want to enter the code too far. I have  
access to the part of code that implement alsa functions.

I was thinking that I can convert the stereo stream into mono stream  
by using the .asoundrc file and by declaring plug or plughw, but I  
can't get it to work, I have various error like :

ALSA lib pcm.c:6569:(snd_pcm_slave_conf) Invalid slave definition
arecord: main:546: audio open error: Invalid argument

Here is the .asoundrc :

pcm.rate_convert {
     type plug
     slave {
         pcm "hw:1,1"
         rate 48000
	channels 1
     }
}

Can anyone explain me how to write a proper plu or plughw that will  
do the trick?

Thanks so much in advance!

Bruno.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux