about sample rate converter for arecord

"yvonne_cyh" <[email protected]> Thu, 3 Jun 2021 17:06:36 +0800
Newsgroups gmane.linux.alsa.user
Message-ID <[email protected]>
Hi All
Who can give me some explanation in detail how resample plugin works during arecord. I would like to record a pcm file to 48k samplerate with command line&nbsp;
arecord&nbsp; -D plughw:1,0 -c 2 -r 48000 -f s32_le test.pcm
I found pcm is still 96K samplerate instead of 48K,as my source is 96K.
And after some modification in asound.conf using dsnoop but it still makes no difference.


pcm.!my_48000{
type dsnoop&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
ipc_key 5778293&nbsp; &nbsp; &nbsp; &nbsp;
ipc_key_add_uid yes&nbsp; &nbsp;
slave{&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
pcm "hw:1,0"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
format S32_LE&nbsp; &nbsp; &nbsp;&nbsp;
rate 48000&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
}



Thanks

_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user
[email protected] (image/jpeg, 7.7 KB) - not displayed