From 6d3e21c27cc369c391d0b9d978423e1e28f215ee Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 18 Sep 2023 13:22:15 -0700
Subject: [PATCH] Fixed android build warnings
---
src/audio/SDL_audioresample.c | 6 ++++--
src/audio/SDL_audioresample.h | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/audio/SDL_audioresample.c b/src/audio/SDL_audioresample.c
index b4531ecb5cd2..3379ca3a8d6b 100644
--- a/src/audio/SDL_audioresample.c
+++ b/src/audio/SDL_audioresample.c
@@ -20,6 +20,8 @@
*/
#include "SDL_internal.h"
+#include "SDL_sysaudio.h"
+
/* SDL's resampler uses a "bandlimited interpolation" algorithm:
https://ccrma.stanford.edu/~jos/resample/ */
@@ -182,7 +184,7 @@ static void (*ResampleFrame)(const float *src, float *dst, const float *raw_filt
static float FullResamplerFilter[RESAMPLER_FULL_FILTER_SIZE];
-void SDL_SetupAudioResampler()
+void SDL_SetupAudioResampler(void)
{
static SDL_bool setup = SDL_FALSE;
if (setup) {
@@ -233,7 +235,7 @@ Sint64 SDL_GetResampleRate(int src_rate, int dst_rate)
return sample_rate;
}
-int SDL_GetResamplerHistoryFrames()
+int SDL_GetResamplerHistoryFrames(void)
{
// Even if we aren't currently resampling, make sure to keep enough history in case we need to later.
diff --git a/src/audio/SDL_audioresample.h b/src/audio/SDL_audioresample.h
index dc781f18e04c..84aaa2dbcfac 100644
--- a/src/audio/SDL_audioresample.h
+++ b/src/audio/SDL_audioresample.h
@@ -28,7 +28,7 @@
Sint64 SDL_GetResampleRate(const int src_rate, const int dst_rate);
-int SDL_GetResamplerHistoryFrames();
+int SDL_GetResamplerHistoryFrames(void);
int SDL_GetResamplerPaddingFrames(Sint64 resample_rate);
Sint64 SDL_GetResamplerInputFrames(Sint64 output_frames, Sint64 resample_rate, Sint64 resample_offset);