Browse Source

Fixed android build warnings

Sam Lantinga 1 year ago
parent
commit
6d3e21c27c
2 changed files with 5 additions and 3 deletions
  1. 4 2
      src/audio/SDL_audioresample.c
  2. 1 1
      src/audio/SDL_audioresample.h

+ 4 - 2
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.
 

+ 1 - 1
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);