Sam Lantinga [Fri, 20 Oct 2017 14:48:10 -0700] rev 11640
Document the SDL audio channel mapping
Sam Lantinga [Fri, 20 Oct 2017 10:45:38 -0700] rev 11639
Added SDL_AudioStreamFlush() to the list of new audio stream functions
Sam Lantinga [Fri, 20 Oct 2017 10:29:22 -0700] rev 11638
Reverted changes a970b2ae1bd7 and 4a94743e31fe
I don't want to introduce any regressions with Android TV remote support
Sam Lantinga [Thu, 19 Oct 2017 15:37:52 -0700] rev 11637
Fixed Android joystick detection
Ryan C. Gordon [Thu, 19 Oct 2017 18:05:42 -0400] rev 11636
audio: Added SDL_AudioStreamFlush().
Sam Lantinga [Thu, 19 Oct 2017 13:54:56 -0700] rev 11635
Don't use DPAD devices as joystick input on Android
Ryan C. Gordon [Wed, 18 Oct 2017 23:49:46 -0400] rev 11634
Check correct variable for malloc() results.
Sam Lantinga [Wed, 18 Oct 2017 19:30:47 -0700] rev 11633
Fixed bug 3876 - Resampling of certain sounds adds heavy distortion
Simon Hug
Patch that adds [-1, 1] clamping to the scalar audio type conversions.
This may come from the SDL_Convert_F32_to_X_Scalar functions. They don't clamp the float value to [-1, 1] and when they cast it to the target integer it may be too large or too small for the type and get truncated, causing horrible noise.
The attached patch throws clamping in, but I don't know if that's the preferred way to fix this. For x86 (without SSE) the compiler (I tested MSVC) seems to throw a horrible amount of x87 code in it. It's a bit better with SSE, but probably still quite the performance hit. And SSE2 uses a branchless approach with maxss and minss.
Sam Lantinga [Wed, 18 Oct 2017 19:26:36 -0700] rev 11632
Added a staging buffer to the audio stream so that we can accumulate small amounts of data if needed when resampling
Sam Lantinga [Wed, 18 Oct 2017 15:54:05 -0700] rev 11631
Added audio stream conversion functions:
SDL_NewAudioStream
SDL_AudioStreamPut
SDL_AudioStreamGet
SDL_AudioStreamAvailable
SDL_AudioStreamClear
SDL_FreeAudioStream