Commit c1931146 authored by David Reid's avatar David Reid

sndio: Set the exclusive mode flag on the device.

parent 726da178
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment