alsa plugin data flow for capture

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

 



Hi All
Could any one tell me how does the data flow like for arecord with alsa plugin?
I found the description on alsa document, with a plugin definition in asound.conf

pcm.myplugdev {
    type plug
    slave { 
        pcm default 
        rate 48000
    }
}
the data flow for aplay £ºaplay -D myplugdev foobar.wav as follows
aplay--> myplugdev (plugin named "plug" converts rate) --> default --> hw:0,0

How about the data flow for arecord£ºaplay -D myplugdev -c 2 -r 48000 save.wav
should be like this? No matter what sample rate for input source , the save.wav should always be 48000? 
arecord--> hw:0,0->default->myplugdev (plugin named "plug" converts rate) --> save.wav?

It is wired it does not work when I am using a dummy codec to capture  I2S audio data to a file, the sample rate is always the same with the source, it seems the converts rate plugin does not work.
Who can kindly give me an explanation for it? I am new to alsa.

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