audio: Offer a hint for libsamplerate quality/speed tradeoff.

This defaults to the internal SDL resampler, since that's the likely default
without a system-wide install of libsamplerate, but those that need more can
tweak this.
This commit is contained in:
Ryan C. Gordon
2017-01-24 15:52:22 -05:00
parent 5ea0c893cd
commit c7f9dcb6fc
4 changed files with 57 additions and 4 deletions

View File

@@ -947,7 +947,7 @@ SetupLibSampleRateResampling(SDL_AudioStream *stream)
SRC_STATE *state = NULL;
if (SRC_available) {
state = SRC_src_new(SRC_SINC_FASTEST, stream->pre_resample_channels, &result);
state = SRC_src_new(SRC_converter, stream->pre_resample_channels, &result);
if (!state) {
SDL_SetError("src_new() failed: %s", SRC_src_strerror(result));
}