shithub: drawterm

Download patch

ref: d744632a356e28dd453c084dc9a2172559103b31
parent: 3b85c767fec3d7c9852f2e86afc89554bfabd02d
author: kvik <kvik@a-b.xyz>
date: Wed Nov 18 17:01:01 EST 2020

devaudio-sndio: use a documented default device string

Passing NULL as a device string was never supposed to work,
at least I couldn't find a mention of it in documented interface.
It appeared to work anyway, up until recently, when sio_open
started failing.

--- a/kern/devaudio-sndio.c	Mon Nov  9 13:30:08 2020
+++ b/kern/devaudio-sndio.c	Wed Nov 18 17:01:01 2020
@@ -20,7 +20,7 @@
 void
 audiodevopen(void)
 {
-	hdl = sio_open(NULL, SIO_PLAY, 0);
+	hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0);
 	if(hdl == NULL){
 		error("sio_open failed");
 		return;