From ea17d500f1366348874835499f4d96d80b71b45c Mon Sep 17 00:00:00 2001 From: David Hill Date: Tue, 22 Oct 2024 14:49:43 +0000 Subject: [PATCH] add upstream fix for sndio users. https://github.com/mackron/miniaudio/commit/d1abdd100ba05b612d22059ec04d40763ce9a5f2 --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 47332e1..2c74bad 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -35484,7 +35484,7 @@ static ma_result ma_device_uninit__sndio(ma_device* pDevice) ((ma_sio_close_proc)pDevice->pContext->sndio.sio_close)((struct ma_sio_hdl*)pDevice->sndio.handleCapture); } - if (pDevice->type == ma_device_type_capture || pDevice->type == ma_device_type_duplex) { + if (pDevice->type == ma_device_type_playback || pDevice->type == ma_device_type_duplex) { ((ma_sio_close_proc)pDevice->pContext->sndio.sio_close)((struct ma_sio_hdl*)pDevice->sndio.handlePlayback); }