Fixed android build warnings
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
|
#include "SDL_sysaudio.h"
|
||||||
|
|
||||||
/* SDL's resampler uses a "bandlimited interpolation" algorithm:
|
/* SDL's resampler uses a "bandlimited interpolation" algorithm:
|
||||||
https://ccrma.stanford.edu/~jos/resample/ */
|
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];
|
static float FullResamplerFilter[RESAMPLER_FULL_FILTER_SIZE];
|
||||||
|
|
||||||
void SDL_SetupAudioResampler()
|
void SDL_SetupAudioResampler(void)
|
||||||
{
|
{
|
||||||
static SDL_bool setup = SDL_FALSE;
|
static SDL_bool setup = SDL_FALSE;
|
||||||
if (setup) {
|
if (setup) {
|
||||||
@@ -233,7 +235,7 @@ Sint64 SDL_GetResampleRate(int src_rate, int dst_rate)
|
|||||||
return sample_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.
|
// 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);
|
Sint64 SDL_GetResampleRate(const int src_rate, const int dst_rate);
|
||||||
|
|
||||||
int SDL_GetResamplerHistoryFrames();
|
int SDL_GetResamplerHistoryFrames(void);
|
||||||
int SDL_GetResamplerPaddingFrames(Sint64 resample_rate);
|
int SDL_GetResamplerPaddingFrames(Sint64 resample_rate);
|
||||||
|
|
||||||
Sint64 SDL_GetResamplerInputFrames(Sint64 output_frames, Sint64 resample_rate, Sint64 resample_offset);
|
Sint64 SDL_GetResamplerInputFrames(Sint64 output_frames, Sint64 resample_rate, Sint64 resample_offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user