Fri, 07 Jun 2019 15:09:15 -0700Fixed surround sound channel setup for Android OpenSL ES audio driver
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Jun 2019 15:09:15 -0700] rev 12766
Fixed surround sound channel setup for Android OpenSL ES audio driver

Fri, 07 Jun 2019 09:00:26 -0700Protect against NULL device in the Android hidapi implementation
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Jun 2019 09:00:26 -0700] rev 12765
Protect against NULL device in the Android hidapi implementation

Fri, 07 Jun 2019 09:00:24 -0700Potential fix for a crash we're seeing on Android that should in theory never happen.
Sam Lantinga <slouken@libsdl.org> [Fri, 07 Jun 2019 09:00:24 -0700] rev 12764
Potential fix for a crash we're seeing on Android that should in theory never happen.

Thu, 06 Jun 2019 08:20:53 -0700Added support for the Rotor Riot gamepad, and upcoming Xbox and PS4 controller support on iOS and tvOS
Sam Lantinga <slouken@libsdl.org> [Thu, 06 Jun 2019 08:20:53 -0700] rev 12763
Added support for the Rotor Riot gamepad, and upcoming Xbox and PS4 controller support on iOS and tvOS
Patch contributed by Nat Brown

Wed, 05 Jun 2019 12:03:45 -0700Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux
Sam Lantinga <slouken@libsdl.org> [Wed, 05 Jun 2019 12:03:45 -0700] rev 12762
Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux

Jan Martin Mikkelsen

The evdev interface is available on FreeBSD, with the xf86-input-evdev for include files in /usr/local/include/linux, so <linux/input.h> works, or when build with the native evdev option, where <dev/evdev/input.h> is available.

Wed, 05 Jun 2019 12:01:26 -0700Use SDL sized types
Sam Lantinga <slouken@libsdl.org> [Wed, 05 Jun 2019 12:01:26 -0700] rev 12761
Use SDL sized types

Wed, 05 Jun 2019 08:54:07 -0700Fixed bug 4656 - SDL_evdev.c uses Linux specific integer types
Sam Lantinga <slouken@libsdl.org> [Wed, 05 Jun 2019 08:54:07 -0700] rev 12760
Fixed bug 4656 - SDL_evdev.c uses Linux specific integer types

Jan Martin Mikkelsen

The file src/core/linux/SDL_evdev.c uses the Linux specific types __u32 and __s32. This breaks things on FreeBSD when building with evdev.

Tue, 04 Jun 2019 17:32:15 -0700Fixed bug 4171 - SDL_GetQueuedAudioSize is broken with WASAPI
Sam Lantinga <slouken@libsdl.org> [Tue, 04 Jun 2019 17:32:15 -0700] rev 12759
Fixed bug 4171 - SDL_GetQueuedAudioSize is broken with WASAPI

Cameron Gutman

I was trying to use SDL_GetQueuedAudioSize() to ensure my audio latency didn't get too high while streaming data in from the network. If I get more than N frames of audio queued, I know that the network is giving me more data than I can play and I need to drop some to keep latency low.

This doesn't work well on WASAPI out of the box, due to the addition of GetPendingBytes() to the amount of queued data. As a terrible hack, I loop 100 times calling SDL_Delay(10) and SDL_GetQueuedAudioSize() before I ever call SDL_QueueAudio() to get a "baseline" amount that I then subtract from SDL_GetQueuedAudioSize() later. However, because this value isn't actually a constant, this hack can cause SDL_GetQueuedAudioSize() - baselineSize to be < 0. This means I have no accurate way of determining how much data is actually queued in SDL's audio buffer queue.

The SDL_GetQueuedAudioSize() documentation says: "This is the number of bytes that have been queued for playback with SDL_QueueAudio(), but have not yet been sent to the hardware." Yet, SDL_GetQueuedAudioSize() returns > 0 value when SDL_QueueAudio() has never been called.

Based on that documentation, I believe the current behavior contradicts the documented behavior of this function and should be changed in line with Boris's patch.

I understand that exposing the IAudioClient::GetCurrentPadding() value is useful, but a solution there needs to take into account what of that data is silence inserted by SDL and what is actual data queued by the user with SDL_QueueAudio(). Until that happens, I think the best approach is to remove the GetPendingBytes() call until SDL is able to keep track of queued data to make sense of it. This would make SDL_GetQueuedAudioSize() possible to use accurately with WASAPI.

Tue, 28 May 2019 17:39:13 -0400test: unify all the command line usage logging.
Ryan C. Gordon <icculus@icculus.org> [Tue, 28 May 2019 17:39:13 -0400] rev 12758
test: unify all the command line usage logging.

Sun, 26 May 2019 18:53:36 -0300iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629.
Alex Szpakowski <slime73@gmail.com> [Sun, 26 May 2019 18:53:36 -0300] rev 12757
iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629.