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:
parent
d756e1486e
commit
0dc13f56ec
4 changed files with 57 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue