shithub: riscv

Download patch

ref: e8083eca17b53fbe7738bf365839491b10dc5f3f
parent: 8c6daa778a7a206b36569a9e01d38199b2b68229
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Oct 26 11:37:04 EDT 2021

zuke: do not change volume with delta == 0

--- a/sys/src/cmd/audio/zuke/zuke.c
+++ b/sys/src/cmd/audio/zuke/zuke.c
@@ -148,6 +148,8 @@
 				a[1] = a[0];
 			l = ol = atoi(a[0]);
 			r = or = atoi(a[1]);
+			if(d == 0)
+				break;
 			for(;;){
 				l += d;
 				r += d;