F5OEO / PiFmRds

FM-RDS transmitter using the Raspberry Pi's PWM
GNU General Public License v3.0
48 stars 8 forks source link

Close on transmit completion #3

Open Stealthbird97 opened 6 years ago

Stealthbird97 commented 6 years ago

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 commented 6 years ago

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

xCuri0 commented 6 years ago

@Stealthbird97 how did you do it ?

Stealthbird97 commented 6 years ago

@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.