ref: 88418ce4fd49ee62171f01ba90d591e3e6858fc8
parent: 313e885fc70220de258ee589d43356e16790287a
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Nov 7 17:00:41 EST 2023
snd (plan9): remove sndstop entirely, it's more work to make it work and no use anyway
--- a/snd_plan9.c
+++ b/snd_plan9.c
@@ -29,21 +29,12 @@
void
sndstop(void)
{
- if(ach != nil){
- qlock(&alock);
- mixbuf = nil;
- sendul(ach, 0);
- qunlock(&alock);
- ach = nil;
- }
- close(afd);
- afd = -1;
}
void
sndwrite(uchar *buf, long sz)
{
- if(afd < 0 && sndopen() < 0)
+ if(afd < 0)
return;
if(ach == nil){
ach = chancreate(sizeof(ulong), 0);