Fixed ResampleAudio interpolation factor calculation

This commit is contained in:
Brick authored and Ryan C. Gordon committed 2023-08-22 08:34:22 -04:00
1 parent 4983638630
commit e6c878824c
2 files changed
+8 -5

No files matched your search

+3 -3
View File
@@ -794,10 +794,10 @@ static int audio_resampleLoss(void *arg)
double signal_to_noise;
double max_error;
} test_specs[] = {
{ 50, 440, 0, 44100, 48000, 79, 0.0008 },
{ 50, 440, 0, 44100, 48000, 80, 0.0009 },
{ 50, 5000, SDL_PI_D / 2, 20000, 10000, 999, 0.0001 },
{ 50, 440, 0, 22050, 96000, 76, 0.0120 },
{ 50, 440, 0, 96000, 22050, 80, 0.0014 },
{ 50, 440, 0, 22050, 96000, 79, 0.0120 },
{ 50, 440, 0, 96000, 22050, 80, 0.0002 },
{ 0 }
};