From ece30d2a3045f01f6e8c1dd93e5dfa9f711422a6 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 3 Mar 2023 01:11:10 +0300
Subject: [PATCH] SDL_AudioStreamClear of SDL2 doesn't return a value
---
src/sdl2_compat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index d17b110..d7c8f43 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -3391,10 +3391,10 @@ SDL_AudioStreamGet(SDL2_AudioStream *stream2, void *buf, int len)
return retval;
}
-DECLSPEC int SDLCALL
+DECLSPEC void SDLCALL
SDL_AudioStreamClear(SDL2_AudioStream *stream2)
{
- return SDL3_ClearAudioStream(stream2 ? stream2->stream3 : NULL);
+ SDL3_ClearAudioStream(stream2 ? stream2->stream3 : NULL);
}
DECLSPEC int SDLCALL