mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fixed android build warnings
This commit is contained in:
parent
fca2f53189
commit
6d3e21c27c
2 changed files with 5 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue