add support for libsamplerate's "linear" resampling mode

Fixes #6998

(cherry picked from commit 8efa1f8fc6)
This commit is contained in:
Fabian Greffrath
2023-01-16 15:17:26 +01:00
committed by Ryan C. Gordon
parent 80f51eeb1f
commit 9b861d2ea4

View File

@@ -128,6 +128,8 @@ static SDL_bool LoadLibSampleRate(void)
SRC_converter = SRC_SINC_MEDIUM_QUALITY;
} else if (*hint == '3' || SDL_strcasecmp(hint, "best") == 0) {
SRC_converter = SRC_SINC_BEST_QUALITY;
} else if (*hint == '4' || SDL_strcasecmp(hint, "linear") == 0) {
SRC_converter = SRC_LINEAR;
} else {
return SDL_FALSE; /* treat it like "default", don't load anything. */
}