I'm running this command on terminal:
for i in $(ls -1 /home/pi/Desktop/Music/Acapella/*.mp3|sort -R); do sox -t mp3 $i -t wav - ; done | sudo ./pi_fm_rds -freq 102.1 -audio - -ps ZSFM -rt "ZSFM" Basically, it uses a forloop to go through all the files in a dir and convert them into wav files on-the-fly, and then pipe it into the pifm command. The only problem is, though, after the first file it says:
sox WARN sox: `-' output clipped 773 samples; decrease volume? Could not rewind in audio file, terminating Terminating: cleanly deactivated the DMA engine and killed the carrier I'm not sure if its a sox problem or a terminal problem. what does it mean (and how do I fix it)?
I did put 'done' after the pifm command, but then it runs the pifm command once for every file, but I want the pifm command to be constantly running, and the forloop will only go on the file its playing.