Просмотр исходного кода

Fixed warning: no previous extern declaration for non-static variable 'ResamplerFilter'

Fixes https://github.com/libsdl-org/SDL/issues/9556
Sam Lantinga 1 год назад
Родитель
Сommit
bdd47f7770
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/audio/SDL_audioresample.c

+ 1 - 1
src/audio/SDL_audioresample.c

@@ -447,7 +447,7 @@ static float Sinc(float *table, int x, int y)
     return (s * y) / x;
 }
 
-Cubic ResamplerFilter[RESAMPLER_SAMPLES_PER_ZERO_CROSSING][RESAMPLER_SAMPLES_PER_FRAME];
+static Cubic ResamplerFilter[RESAMPLER_SAMPLES_PER_ZERO_CROSSING][RESAMPLER_SAMPLES_PER_FRAME];
 
 static void GenerateResamplerFilter()
 {