SDL_HINT_AUDIO_RESAMPLING_MODE not available in the oldest sdl2 releases
Considering that SDL2_mixer is the only audio option in branches later than S3_0, requiring SDL2 >= 2.0.6 in S3_1 is a bit out of the general line (trusty can still use gtk3-client in S3_1 etc). Such a requirement is in line with master's requirements.
- Rebased master patch against current HEAD (it was originally made on top of #43942)
The S3_0 patch checks that AUDIO_SDL1_2 is defined, rather than undefined (as before); I assume that's not intended.
Reply To alienvalkyrie
The S3_0 patch checks that AUDIO_SDL1_2 is defined, rather than undefined (as before); I assume that's not intended.
Corrected patch attached.
I've got build failure on Ubuntu Trusty because of SDL_HINT_AUDIO_RESAMPLING_MODE.
sdl2 documentation does not list as something that's been added since initial 2.0.0 release (and that's the documentation I've been relying so far), but looking various Release Notes it seems that it was added in sdl2-2.0.6.
In master and S3_1 we can simply bump minimum sdl2 requirement.
S3_0 likely needs more conditional compiling, or in worst case dropping the hint completely.