Skip to content

Commit

Permalink
add support for libsamplerate's "linear" resampling mode
Browse files Browse the repository at this point in the history
Fixes #6998
  • Loading branch information
fabiangreffrath authored and icculus committed Jan 16, 2023
1 parent 5d1e6b2 commit 8efa1f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -160,6 +160,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. */
}
Expand Down

0 comments on commit 8efa1f8

Please sign in to comment.