Simple Directmedia Layer
Go to file
Sam Lantinga 31765242d6 Fixed bug 4294 - Audio: perform more validation on conversion request
janisozaur

There are many cases which are not able to be handled by SDL's audio conversion routines, including too low (negative) rate, too high rate (impossible to allocate).

This patch aims to report such issues early and handle others in a graceful manner. The "INT32_MAX / RESAMPLER_SAMPLES_PER_ZERO_CROSSING" value is the conservative approach in terms of what can _technically_ be supported, but its value is 4'194'303, or just shy of 4.2MHz. I highly doubt any sane person would use such rates, especially in SDL2, so I would like to drive this limit further down, but would need some assistance to do that, as doing so would have to introduce an arbitrary value. Are you OK with such approach? What would a good value be? Wikipedia (https://en.wikipedia.org/wiki/High-resolution_audio) lists 96kHz as the highest sampling rate in use, even if I quadruple it for a good measure, to 384kHz it's still an order of magnitude lower than 4MHz.
2019-06-08 18:22:18 -07:00
acinclude
android-project Fixed hiding the Android virtual keyboard when the return key is pressed 2019-05-23 11:05:43 -07:00
android-project-ant
build-scripts
cmake
debian
docs Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE 2019-04-05 09:16:30 +02:00
include Fixed bug 4526 - replace SDL_RW* macros with functions for using in bindings 2019-06-08 17:43:23 -07:00
src Fixed bug 4294 - Audio: perform more validation on conversion request 2019-06-08 18:22:18 -07:00
test test: unify all the command line usage logging. 2019-05-28 17:39:13 -04:00
VisualC
VisualC-WinRT
visualtest test: unify all the command line usage logging. 2019-05-28 17:39:13 -04:00
wayland-protocols
Xcode
Xcode-iOS Fixed bug 4603 - The iOS Test Xcode project file needs to add the metal framework 2019-06-08 14:29:05 -07:00
.hgignore
Android.mk
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt Fixed bug 4593 - Respect CMake's BUILD_SHARED_LIBS default behavior 2019-06-08 14:36:03 -07:00
configure Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux 2019-06-05 12:03:45 -07:00
configure.ac Fixed bug 4655 - evdev is available on FreeBSD, check in 'configure' limited to Linux 2019-06-05 12:03:45 -07:00
COPYING.txt
CREDITS.txt
INSTALL.txt
Makefile.in Add a configure option allowing users to choose whether to install sdl2-config 2019-04-07 23:01:07 +10:00
Makefile.minimal
Makefile.os2
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 Android: add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE 2019-04-05 09:16:30 +02: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)