ref: d11f54fccdac48571f515ac4258afb5ecd76517a
parent: dc2d4daff4bb9fe493b563cf7092dd54a9525574
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Nov 20 09:07:32 EST 2020
shut down audio when stopping
--- a/zuke.c
+++ b/zuke.c
@@ -592,6 +592,7 @@
}
r = nbrecv(player->ctl, &c);
if(r < 0){
+ audiooff();
goto stop;
}else if(r != 0){
if(c == Ctoggle){
@@ -598,12 +599,12 @@
audiooff();
if(recv(player->ctl, &c) < 0 || c == Cstop)
goto stop;
- audioon();
}else if(c == Cseekrel){
boffset = MAX(0, boffset + player->seek*Bps);
n = 0;
break;
}else if(c == Cstop){
+ audiooff();
goto stop;
}
}