Sun, 13 Nov 2016 23:04:47 -0800Fixed unresolved symbol on Visual Studio
Sam Lantinga [Sun, 13 Nov 2016 23:04:47 -0800] rev 10610
Fixed unresolved symbol on Visual Studio

Sun, 13 Nov 2016 22:57:41 -0800Patch from Sylvain to fix clang warnings
Sam Lantinga [Sun, 13 Nov 2016 22:57:41 -0800] rev 10609
Patch from Sylvain to fix clang warnings

Sun, 13 Nov 2016 00:09:02 -0800Fixed bug 3488 - Random crashes (because Memory overlap in audio converters detected by Valgrind)
Sam Lantinga [Sun, 13 Nov 2016 00:09:02 -0800] rev 10608
Fixed bug 3488 - Random crashes (because Memory overlap in audio converters detected by Valgrind)

Vitaly Novichkov

Okay, when I researched code and algorithm, I tried to replace condition "while(dst >= target)" with "while(dst > target)" and crashes are gone.
Seems on some moments it tries to write into the place before memory block begin, therefore phantom crashes appearing after some moments.

Fri, 11 Nov 2016 13:47:40 -0800Fixed build on various platforms
Sam Lantinga [Fri, 11 Nov 2016 13:47:40 -0800] rev 10607
Fixed build on various platforms

Fri, 11 Nov 2016 13:38:39 -0800Fixed bug 1822 - Inconsistent renderer behaviour on rotation
Sam Lantinga [Fri, 11 Nov 2016 13:38:39 -0800] rev 10606
Fixed bug 1822 - Inconsistent renderer behaviour on rotation

Sylvain 2016-11-07 08:49:34 UTC

when rotated +90 or -90, some transparent lines appears, though there is no Alpha or ColorKey.

if you set a dummy colorkey, it will remove the line ...
if you set a some alpha mod, the +90/-90 get transparent but not the 0/180 ...

Fri, 11 Nov 2016 13:29:23 -0800Fixed bug 3079 - Allow non destructive SDL_GameControllerAddMappingsFromFile
Sam Lantinga [Fri, 11 Nov 2016 13:29:23 -0800] rev 10605
Fixed bug 3079 - Allow non destructive SDL_GameControllerAddMappingsFromFile

x414e54

It is a bit of a pain to update the library or rely on whatever version the user has on their computer for default mappings.

So providing an easily updatable text file via SDL_GameControllerAddMappingsFromFile is still currently the most viable way. However using this replaces all mappings provided by the SDL_HINT_GAMECONTROLLERCONFIG environment variable which may have come from the user's custom Steam mapping.

There should be an easy way for games to supply extra game controller mappings to fill in the differences between SDL versions without it clobbering the SDL_HINT_GAMECONTROLLERCONFIG environment variable.

Internally the mappings could use a priority system and if the priority is lower then it will not overwrite the mappings.

For now it just assumes SDL_HINT_GAMECONTROLLERCONFIG is the highest priority, the default hardcoded are the lowest and anything set via the API is medium.

Fri, 11 Nov 2016 13:14:00 -0800Define _GNU_SOURCE when building SDL
Sam Lantinga [Fri, 11 Nov 2016 13:14:00 -0800] rev 10604
Define _GNU_SOURCE when building SDL

Fri, 11 Nov 2016 12:41:06 -0800Fixed bug 3484 - DSP driver does not detect /dev/dsp0
Sam Lantinga [Fri, 11 Nov 2016 12:41:06 -0800] rev 10603
Fixed bug 3484 - DSP driver does not detect /dev/dsp0

Tobias Kortkamp

using SDL 2.0.5 (and a repository checkout) on FreeBSD 11.0 I get this output
from testaudioinfo with SDL_AUDIODRIVER=dsp:

INFO: Found 8 output devices:
INFO: 0: /dev/dsp
INFO: 1: /dev/dsp1
INFO: 2: /dev/dsp2
INFO: 3: /dev/dsp3
INFO: 4: /dev/dsp4
INFO: 5: /dev/dsp5
INFO: 6: /dev/dsp6
INFO: 7: /dev/dsp7
INFO:
INFO: Found 3 capture devices:
INFO: 0: /dev/dsp
INFO: 1: /dev/dsp4
INFO: 2: /dev/dsp5
INFO:

This is /dev/sndstat:

Installed devices:
pcm0: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0040) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC887 (Rear Analog 7.1/2.0)> (play/rec)
pcm5: <Realtek ALC887 (Front Analog)> (play/rec) default
pcm6: <Realtek ALC887 (Rear Digital)> (play)
pcm7: <Realtek ALC887 (Onboard Digital)> (play)
No devices installed from userspace.

I'd expect to find /dev/dsp0 in the output device list. It's not detected
because of a a small logic error in SDL_audiodev.c (see attached patch).

With the patch applied I get this which is what I'd expect:

INFO: Found 9 output devices:
INFO: 0: /dev/dsp
INFO: 1: /dev/dsp0
INFO: 2: /dev/dsp1
INFO: 3: /dev/dsp2
INFO: 4: /dev/dsp3
INFO: 5: /dev/dsp4
INFO: 6: /dev/dsp5
INFO: 7: /dev/dsp6
INFO: 8: /dev/dsp7

Fri, 11 Nov 2016 04:35:06 -0800Fixed whitespace and added code to support older game controller GUIDs
Sam Lantinga [Fri, 11 Nov 2016 04:35:06 -0800] rev 10602
Fixed whitespace and added code to support older game controller GUIDs

Fri, 11 Nov 2016 04:30:09 -0800Fixed whitespace
Sam Lantinga [Fri, 11 Nov 2016 04:30:09 -0800] rev 10601
Fixed whitespace