stsaz / fmedia

fast audio player/recorder/converter
BSD 2-Clause "Simplified" License
216 stars 21 forks source link

Stop All instruction? #35

Closed hced closed 4 years ago

hced commented 4 years ago

Hi. First, hats off for a great project!

I'd like to be able to use fmedia as a faceless player for audio files in my filesystem (Windows 10). I'm using Directory Opus as my file manager, and there I can create buttons and keyboard shortcuts that can operate and run commands on selected files.

Is it already possible to tell the running process to just stop all audio playback and exit? Also, maybe there's a need to add a flag for -single-instance mode so that such a command would know which PID to terminate? (I'm not a coder, so that's just a speculation.)

hced commented 4 years ago

EDIT: Closing this, as I found out that I can just do this on Windows:

taskkill /IM fmedia.exe /T /F

... to forcefully kill the fmedia process and any child processes started by it.