miegl / PiFmAdv

Advanced Raspberry Pi FM transmitter with RDS encoding
GNU General Public License v3.0
487 stars 82 forks source link

Make the process quit on broken pipe / EOF #26

Closed morrolinux closed 6 years ago

morrolinux commented 6 years ago

When piping musing into pi_fm_adv like this sox somefile.mp3 -t wav - | pi_fm_adv ... It would be nice if upon sox termination pi_fm_adv could terminate as well, just like pi_fm_rds did. Could you please point me out a way to do so or implement it as I really need this behaviour Thank you for this brilliant implementation, thought

miegl commented 6 years ago

Fixed

miegl commented 6 years ago

So I made an option for this. The behaviour you need is not enabled by default, but you can easily turn off the waiting now with --wait 0

miegl commented 6 years ago

The waiting is enabled by default because it's better for use with something like LibreTime/AirTime.

morrolinux commented 6 years ago

Ok thanks for the update