tjdevries / subd

subd - a place to reward your subscribers from any platform
50 stars 7 forks source link

Play Sound when program crashes #66

Open davidbegin opened 1 year ago

davidbegin commented 1 year ago
cargo run && audio-player --volume 0.1 "$HOME/code/audio-player/[output.ogg](https://output.ogg/)" || audio-player --volume 0.1 "$HOME/code/tmp/error-sounds/[priceisright.ogg](https://priceisright.ogg/)"
rockerBOO commented 1 year ago

https://github.com/rockerBOO/audio-player this is the audio player I made (uses rodio) referenced above.

Something like this...

cargo run && audio-player --volume 0.1 success.ogg || audio-player --volume 0.1 failure.ogg