From 62c10ddd582e60489ea3566d4f88a4379f56234f Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 15 Aug 2025 06:10:34 +1000 Subject: [PATCH] Fix an error with duplex mode for the new null backend. --- miniaudio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index f5cd5bca..39cc3be3 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -21137,7 +21137,8 @@ static void ma_device_step__null(ma_device* pDevice) /* For capture we need to submit silence. For playback we just read and discard. */ if (deviceType == ma_device_type_capture || deviceType == ma_device_type_duplex) { ma_device_handle_backend_data_callback(pDevice, NULL, pDeviceStateNull->pDataCapture, framesAvailable); - } else if (deviceType == ma_device_type_playback || deviceType == ma_device_type_duplex) { + } + if (deviceType == ma_device_type_playback || deviceType == ma_device_type_duplex) { ma_device_handle_backend_data_callback(pDevice, pDeviceStateNull->pDataPlayback, NULL, framesAvailable); }