Simple Directmedia Layer
Go to file
Sam Lantinga 8325df25aa Fixed bug 4169 - Crash due to audio session observer race condition
Jona

The following explains why this bug was happening:
This crash was caused because the audio session was being set as active [session setActive:YES error:&err] when the audio device was actually being CLOSED. Certain cases the audio session being set to active would fail and the method would return right away. Because of the way the error was handled we never removed the SDLInterruptionListener thus leaking it. Later when an interruption was received the THIS_ object would contain a pointer to an already released device causing the crash.

The fix:
When only one device remained open and it was being closed we needed to set the audio session as NOT active and completely ignore the returned error to successfully release the SDLInterruptionListener. I think the user assumed that the open_playback_devices and open_capture_devices would equal 0 when all of them where closed but the truth is that at the end of the closing process that the open devices count is decremented.
2018-05-24 07:30:24 -07:00
acinclude
android-project Better fix for axis sorting with some Android controllers 2018-05-23 17:15:35 -07:00
android-project-ant
build-scripts Fixed bug 4065 - SDL_wave.c fail to compile in armeabi with ndk r16b 2018-01-27 12:05:26 -08:00
cmake Fixed bug 4027 - CheckLibSampleRate macro in sdlchecks.cmake never defines HAVE_LIBSAMPLERATE{,_SHARED}, so they're always reported as disabled by MESSAGE_TESTED_OPTION macro in macros.cmake 2018-02-13 13:25:59 -08:00
debian Updated copyright for 2018 2018-01-03 10:03:25 -08:00
docs audio: Added ARM NEON versions of audio converters. 2018-05-16 02:03:06 -04:00
include audio: Added ARM NEON versions of audio converters. 2018-05-16 02:03:06 -04:00
src Fixed bug 4169 - Crash due to audio session observer race condition 2018-05-24 07:30:24 -07:00
test cpuinfo: Added SDL_HasAVX512F(). 2018-05-21 11:35:42 -04:00
VisualC Merged latest changes from Steam Link app 2018-05-18 13:09:30 -07:00
VisualC-WinRT Windows Phone 8.0 is no longer supported 2018-02-09 08:03:03 -08:00
visualtest
Xcode Fixed bug 4088 - Fix Metal link errors with test programs in SDLTest.xcodeproj 2018-02-20 09:04:31 -08:00
Xcode-iOS Added missing file to tvOS build 2018-02-24 08:40:30 -08:00
.hgignore
Android.mk
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt Fixed bug 4135 - Broken symlink libSDL2.so since rev11940 2018-04-15 09:37:51 -07:00
configure Fixed bug 4154 - Fix three empty variable tests in configure 2018-05-05 10:31:03 -07:00
configure.in Fixed bug 4154 - Fix three empty variable tests in configure 2018-05-05 10:31:03 -07:00
COPYING.txt Updated copyright for 2018 2018-01-03 10:03:25 -08:00
CREDITS.txt
INSTALL.txt
Makefile.in
Makefile.minimal
Makefile.pandora
Makefile.psp
Makefile.wiz
README-SDL.txt
README.txt
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
SDL2Config.cmake
TODO.txt
VisualC.html
WhatsNew.txt Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened 2018-03-07 13:30:40 -08:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting
with README.md

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)