From 2f7eef3a41b5dff867927da2b75ebf35e9c0d076 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 3 Mar 2019 17:35:48 +1000 Subject: [PATCH] DirectSound: Fix a bug in playback-only mode. --- mini_al.h | 1 - 1 file changed, 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index d3652203..52c38b1a 100644 --- a/mini_al.h +++ b/mini_al.h @@ -9613,7 +9613,6 @@ mal_result mal_device_main_loop__dsound(mal_device* pDevice) framesWrittenToPlaybackDevice += mappedSizeInBytesPlayback/bpfPlayback; if (!isPlaybackDeviceStarted && framesWrittenToPlaybackDevice >= (pDevice->playback.internalBufferSizeInFrames/pDevice->playback.internalPeriods)) { if (FAILED(mal_IDirectSoundBuffer_Play((mal_IDirectSoundBuffer*)pDevice->dsound.pPlaybackBuffer, 0, 0, MAL_DSBPLAY_LOOPING))) { - mal_IDirectSoundCaptureBuffer_Stop((mal_IDirectSoundCaptureBuffer*)pDevice->dsound.pCaptureBuffer); return mal_post_error(pDevice, MAL_LOG_LEVEL_ERROR, "[DirectSound] IDirectSoundBuffer_Play() failed.", MAL_FAILED_TO_START_BACKEND_DEVICE); } isPlaybackDeviceStarted = MAL_TRUE;