ref: 4b7e72689dd10c604ad5c25f0d52ffc38ee8efa6
parent: c5a0909b67d1700c096a361c2acaf12bcb3e0bad
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Oct 27 18:02:31 EDT 2021
zuke: reset before tokenize, increase player thread stack
--- a/sys/src/cmd/audio/zuke/zuke.c
+++ b/sys/src/cmd/audio/zuke/zuke.c
@@ -156,6 +156,7 @@
fprint(f, "%s %d %d\n", n, l, r);
Bseek(&b, 0, 0);
for(; (s = Brdline(&b, '\n')) != nil;){
+ memset(a, 0, sizeof(a));
if((n = matchvname(s)) != nil && tokenize(s+strlen(n), a, 2) >= 1){
if(a[1] == nil)
a[1] = a[0];
@@ -613,7 +614,7 @@
player->ev = chancreate(sizeof(ulong), 0);
player->pcur = pcur;
- threadcreate(playerthread, player, 4096);
+ threadcreate(playerthread, player, 32768);
if(getmeta(pcur)->filefmt[0] && playerret(player) < 0)
return nil;