From e3cedf967d73998f678868276109653ab148163b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 11 Jan 2020 04:38:13 -0800 Subject: [PATCH] Add the destination format to the error when conversion isn't possible --- src/audio/SDL_audiocvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 284f1c524..cbb523e4a 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -677,7 +677,7 @@ SDL_BuildAudioTypeCVTFromFloat(SDL_AudioCVT *cvt, const SDL_AudioFormat dst_fmt) } if (!filter) { - return SDL_SetError("No conversion from float to destination format available"); + return SDL_SetError("No conversion from float to format 0x.4x available", dst_fmt); } if (SDL_AddAudioCVTFilter(cvt, filter) < 0) {