SDL/src/audio
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
..
alsa Fixed bug 4525 - Fix crash in ALSA_HotplugThread caused by bad return value check 2019-03-16 18:48:21 -07:00
android Updated copyright for 2019 2019-01-04 22:01:14 -08:00
arts Updated copyright for 2019 2019-01-04 22:01:14 -08:00
coreaudio [SDL] iOS fix bug with audio interrupted by a phone call not restoring. 2019-05-14 14:20:54 -07:00
directsound Updated copyright for 2019 2019-01-04 22:01:14 -08:00
disk Updated copyright for 2019 2019-01-04 22:01:14 -08:00
dsp Updated copyright for 2019 2019-01-04 22:01:14 -08:00
dummy Updated copyright for 2019 2019-01-04 22:01:14 -08:00
emscripten Emscripten: No need for Runtime. for dynCalls 2019-01-29 12:21:22 +00:00
esd Updated copyright for 2019 2019-01-04 22:01:14 -08:00
fusionsound Updated copyright for 2019 2019-01-04 22:01:14 -08:00
haiku Updated copyright for 2019 2019-01-04 22:01:14 -08:00
jack Updated copyright for 2019 2019-01-04 22:01:14 -08:00
nacl Updated copyright for 2019 2019-01-04 22:01:14 -08:00
nas Updated copyright for 2019 2019-01-04 22:01:14 -08:00
netbsd Fixed bug 4642 - Rework SDL_netbsdaudio to improve performance 2019-06-08 13:03:36 -07:00
openslES OpenSL ES audio cleanup and added a note with low latency audio discussion 2019-06-08 10:21:38 -07:00
paudio Updated copyright for 2019 2019-01-04 22:01:14 -08:00
psp Updated copyright for 2019 2019-01-04 22:01:14 -08:00
pulseaudio Updated copyright for 2019 2019-01-04 22:01:14 -08:00
qsa Updated copyright for 2019 2019-01-04 22:01:14 -08:00
sndio Updated copyright for 2019 2019-01-04 22:01:14 -08:00
sun Updated copyright for 2019 2019-01-04 22:01:14 -08:00
wasapi Fixed bug 4605 - WASAPI_WaitDevice hang 2019-06-08 13:41:46 -07:00
winmm Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_audio.c Fixed bug 4171 - SDL_GetQueuedAudioSize is broken with WASAPI 2019-06-04 17:32:15 -07:00
SDL_audio_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_audiocvt.c Fixed bug 4294 - Audio: perform more validation on conversion request 2019-06-08 18:22:18 -07:00
SDL_audiodev.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_audiodev_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_audiotypecvt.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_mixer.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_sysaudio.h Fixed bug 4171 - SDL_GetQueuedAudioSize is broken with WASAPI 2019-06-04 17:32:15 -07:00
SDL_wave.c CVE-2019-7578: Fix a buffer overread in InitIMA_ADPCM 2019-06-08 18:07:58 -07:00
SDL_wave.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00