Skip to content

Commit

Permalink
Merge pull request #59 from dajohi/miniaudio_sndio
Browse files Browse the repository at this point in the history
add upstream fix for sndio users.
  • Loading branch information
gen2brain authored Oct 22, 2024
2 parents 6f1b2c3 + ea17d50 commit d802981
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 @@ -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);
}

Expand Down

0 comments on commit d802981

Please sign in to comment.