|
From: isikistanbul <isi...@ho...> - 2015-12-04 02:12:39
|
Hi everyone, I am trying to create an infinite loop with while that takes -m on my raspberry pi. I will have two inputs for the -m, one wav file and one usb mic. The code works without the looping. And I tried the repeat function too, it crashes after awhile. is there a way to use repeat for infinite time? So far I have this code: while sox -m -r 48000 -t alsa hw:1,0 /media/NASDRIVE2/bow.wav -t alsa hw:0,0 delay 3 3 ; do :; done It works perfectly on the first round. But on the second round the wav file stops playing and it is just the microphone I can hear from the speakers. What am I doing wrong? missing in that line? (NASDRIVE2 is the USB drive connected to the raspberry pi.) The wav file continues playing on the second round if I just play it without mixing with the microphone. while play /media/NASDRIVE2/bow.wav ; do :; done I would really appreciate any help and suggestions. Thanks, Isik -- View this message in context: http://sox.10957.n7.nabble.com/infinite-while-loop-with-m-function-tp5590.html Sent from the SoX mailing list archive at Nabble.com. |