From df8ebc62645ec74b071fe865240e41e11200b982 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sun, 15 Dec 2024 13:28:21 +0100 Subject: [PATCH] Improve sdl audio error output --- platforms/shared/audio/sound_queue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platforms/shared/audio/sound_queue.cpp b/platforms/shared/audio/sound_queue.cpp index 7b1c669..3cd6922 100644 --- a/platforms/shared/audio/sound_queue.cpp +++ b/platforms/shared/audio/sound_queue.cpp @@ -26,9 +26,9 @@ static void sdl_error(const char* str) { const char* sdl_str = SDL_GetError(); if (sdl_str && *sdl_str) - str = sdl_str; - - Log("Sound Queue: %s", str); + Log("Sound Queue: %s - SDL Error: %s", str, sdl_str); + else + Log("Sound Queue: %s", str); } SoundQueue::SoundQueue()