diff --git a/MP3.sc b/MP3.sc index 0ce6e3d..f125939 100644 --- a/MP3.sc +++ b/MP3.sc @@ -130,7 +130,8 @@ MP3 { if(pid.isNil, { "MP3.stop - unable to stop automatically, PID not known".warn; }, { - ("kill" + pid).systemCmd; + ("pkill -P" + pid).systemCmd; + ("MP3 killed PID"+pid+"and child.").postln; pid = nil; playing = false; }); @@ -176,4 +177,4 @@ MP3 { }); } -} \ No newline at end of file +}