ref: e18da032f0b875e86d66f728cb0007840d1fbc79
parent: d168b89ab110a2d1fcaf72ad085a789092b82b00
author: Sigrid <[email protected]>
date: Thu May 27 03:47:10 EDT 2021
zuke: fix seeking in paused mode
--- a/sys/src/cmd/audio/zuke/zuke.c
+++ b/sys/src/cmd/audio/zuke/zuke.c
@@ -663,9 +663,10 @@
}else if(r != 0){
if(c == Ctoggle){
audiooff();
- if(recv(player->ctl, &c) < 0 || c == Cstop)
+ if(recv(player->ctl, &c) < 0)
goto stop;
- }else if(c == Cseekrel){
+ }
+ if(c == Cseekrel){
boffset = MAX(0, boffset + player->seek*Bps);
n = 0;
break;