Wed, 11 Oct 2017 11:43:35 -0400audio: calculate resampling time directly, don't increment (thanks, Eric!).
Ryan C. Gordon <icculus@icculus.org> [Wed, 11 Oct 2017 11:43:35 -0400] rev 11594
audio: calculate resampling time directly, don't increment (thanks, Eric!).

Fixes buffer overruns as floating point errors accumulate.

Partially fixes Bugzilla #3848.

Wed, 11 Oct 2017 02:33:55 -0400audio: clamp resampler interpolation values to prevent buffer overflow.
Ryan C. Gordon <icculus@icculus.org> [Wed, 11 Oct 2017 02:33:55 -0400] rev 11593
audio: clamp resampler interpolation values to prevent buffer overflow.

Partially fixes Bugzilla #3848.

Wed, 11 Oct 2017 02:31:58 -0400audio: Moved unchanging variable out of loop.
Ryan C. Gordon <icculus@icculus.org> [Wed, 11 Oct 2017 02:31:58 -0400] rev 11592
audio: Moved unchanging variable out of loop.

Wed, 11 Oct 2017 02:03:05 -0400audio: Make sure audio stream resampling doesn't overflow buffers.
Ryan C. Gordon <icculus@icculus.org> [Wed, 11 Oct 2017 02:03:05 -0400] rev 11591
audio: Make sure audio stream resampling doesn't overflow buffers.

Wed, 11 Oct 2017 01:37:11 -0400audio: Fixed check for minimum audio stream put size.
Ryan C. Gordon <icculus@icculus.org> [Wed, 11 Oct 2017 01:37:11 -0400] rev 11590
audio: Fixed check for minimum audio stream put size.

Tue, 10 Oct 2017 20:16:52 -0700Updated WhatsNew.txt for 2.0.7 changes
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Oct 2017 20:16:52 -0700] rev 11589
Updated WhatsNew.txt for 2.0.7 changes

Tue, 10 Oct 2017 20:11:05 -0700Changed overlapping memcpy to memmove
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Oct 2017 20:11:05 -0700] rev 11588
Changed overlapping memcpy to memmove

Tue, 10 Oct 2017 19:44:33 -0700Fixed potentially calling a callback after it has been removed (and userdata possibly deleted)
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Oct 2017 19:44:33 -0700] rev 11587
Fixed potentially calling a callback after it has been removed (and userdata possibly deleted)

Tue, 10 Oct 2017 22:31:02 -0400audio: SDL_ResampleCVT() should use memmove instead of memcpy.
Ryan C. Gordon <icculus@icculus.org> [Tue, 10 Oct 2017 22:31:02 -0400] rev 11586
audio: SDL_ResampleCVT() should use memmove instead of memcpy.

This copy can overlap.

Fixes Bugzilla #3849.

Tue, 10 Oct 2017 22:18:46 -0400audio: Don't stack-allocate resampler padding.
Ryan C. Gordon <icculus@icculus.org> [Tue, 10 Oct 2017 22:18:46 -0400] rev 11585
audio: Don't stack-allocate resampler padding.

(I thought padding size ranged from 5 frames to ~30 frames (based around
RESAMPLER_ZERO_CROSSINGS, which is 5), but it's actually between 512 and
several thousands (based on RESAMPLER_SAMPLES_PER_ZERO_CROSSING)). It gets
big fast when downsampling.