SDL_audiocvt: Respct the SDL_HINT_AUDIO_RESAMPLING_MODE hint

This implements using libsamplerate for the SDL_AudioCVT API.
This library was already being used for audio streams when this hint is
set.
This commit is contained in:
Daniel Bomar
2022-10-15 15:54:12 -05:00
committed by Sam Lantinga
parent e8fdb861ef
commit 22461383c6
4 changed files with 75 additions and 5 deletions

View File

@@ -278,10 +278,7 @@ extern "C" {
* If this hint isn't specified to a valid setting, or libsamplerate isn't
* available, SDL will use the default, internal resampling algorithm.
*
* Note that this is currently only applicable to resampling audio that is
* being written to a device for playback or audio being read from a device
* for capture. SDL_AudioCVT always uses the default resampler (although this
* might change for SDL 2.1).
* As of SDL 2.26, SDL_AudioCVT now respects this hint.
*
* This hint is currently only checked at audio subsystem initialization.
*