PiFmRds icon indicating copy to clipboard operation
PiFmRds copied to clipboard

Close on transmit completion

Open Stealthbird97 opened this issue 7 years ago • 3 comments

Hi, Is there any way to make the program stop after it has completed transmitting the audio file, or at least reload the file each time it reaches the end of the audio file so that if an updated file is provided, it plays that one instead?

Stealthbird97 avatar Sep 23 '18 00:09 Stealthbird97

Ah, never mind. I looked at the upstream and found a solution.

Stealthbird97 avatar Sep 23 '18 17:09 Stealthbird97

@Stealthbird97 how did you do it ?

xCuri0 avatar Oct 20 '18 08:10 xCuri0

@xCuri0 You need to use the standard input. cat sstv-out.wav | sudo ./PiFmRds/src/pi_fm_rds -audio - -freq 145.200 After the file has played, the program stops. Using a while loop or something, you can start the program again and it will use the latest version of the file.

Stealthbird97 avatar Oct 20 '18 10:10 Stealthbird97