I have a script that invokes the play command when I press f10. I would like to edit that script so if I press it while an audio file is playing, then it kills that first before playing the next file.
What command am I looking for? Something like,
killall play ?