From 7f911f3d12f6517093fcbc11966467621eb5e03f Mon Sep 17 00:00:00 2001 From: znakeeye Date: Sun, 29 Dec 2024 14:37:15 +0100 Subject: [PATCH] Add some logging when re-routing fails. Set device status to stopped. --- miniaudio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/miniaudio.h b/miniaudio.h index 417198e3..062232a0 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -38369,6 +38369,7 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev result = ma_device_init__aaudio(pDevice, &deviceConfig, &descriptorPlayback, &descriptorCapture); if (result != MA_SUCCESS) { + ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_ERROR, "[AAudio] Failed to create stream."); return result; }