mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 19:06:26 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user