|
From: Jan S. <ha...@st...> - 2015-12-07 14:02:55
|
On Dec 03 18:28:46, isi...@ho... wrote: > 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 Please show us the exact output of SoX when you run this. Use e.g. script(1) to capture the whole session. Jan > 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. > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > _______________________________________________ > Sox-users mailing list > Sox...@li... > https://lists.sourceforge.net/lists/listinfo/sox-users |