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.

--HG--
extra : amend_source : 804f3d3dc636b5f28f7194b48b492c6c3fe05bf5
This commit is contained in:
Ryan C. Gordon 2017-01-24 15:52:22 -05:00
parent d756e1486e
commit 0dc13f56ec
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));
}