Hello Folks,
I wanted to use aloop driver to dump playback audio data to a file in userspace for debugging without data being sent to hardware (just as a debug feature for future use).
Command flow is this: 1. aloop capture device is started using below command first: "arec -D hw:0,1 /data/rec.wav &"
2. using aplay, userspace sends the playback data. "aplay -D hw:0,0 /data/test.wav"
Using jiffies. Wondering if changing rate_shift (don't know what is that for) will help?
However, even in this simple setup I can see aloop driver is corrupting the data and sinetone sent from playback has glitches. I have tried different period sizes as well but nothing worked. Wondering if this is by design i.e. if the aloop driver shouldn't be used for this purpose? Any debug steps will be highly appreciated.
Thanks for your help,