From c19311461f8d89248e5c75b1bf7fb4d3d9878248 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 30 Jul 2018 23:05:03 +1000 Subject: [PATCH] sndio: Set the exclusive mode flag on the device. --- mini_al.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mini_al.h b/mini_al.h index e1bc3f1c..140bd8b6 100644 --- a/mini_al.h +++ b/mini_al.h @@ -16245,6 +16245,9 @@ mal_result mal_device_init__sndio(mal_context* pContext, mal_device_type deviceT mal_get_standard_channel_map(mal_standard_channel_map_sndio, pDevice->internalChannels, pDevice->internalChannelMap); + // The device is always shared with sndio. + pDevice->exclusiveMode = MAL_FALSE; + pDevice->sndio.pIntermediaryBuffer = mal_malloc(pDevice->sndio.fragmentSizeInFrames * mal_get_bytes_per_frame(pDevice->internalFormat, pDevice->internalChannels)); if (pDevice->sndio.pIntermediaryBuffer == NULL) { ((mal_sio_close_proc)pContext->sndio.sio_close)((struct mal_sio_hdl*)pDevice->sndio.handle);