Skip to content

Commit

Permalink
fix crash in ma_device_uninit when using sndio
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and mackron committed Oct 17, 2024
1 parent 192a84a commit d1abdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miniaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -35635,7 +35635,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);
}

Expand Down

0 comments on commit d1abdd1

Please # to comment.