godot/drivers
Cooper Harasyn 4bf141a47e
Prevent ALSA audio corruption
When using the ALSA driver, corruption would occur if `snd_pcm_writei`
was unable to consume the entire sound buffer. This would occur
frequently on the Raspberry Pi 3 which uses the `snd_bcm2835` audio
driver.

This bug resulted from incorrect pointer math on line 187, resulting in
the sample source pointer being advanced by `total * ad->channels` bytes
instead of `total * ad->channels` samples. In my opinion, the best fix
is to change `*src` to type `int16_t`, since that is the sample type in
use.

Fixes #43927.

(cherry picked from commit 25b2f82ccf)
2020-12-01 09:00:53 +01:00
..
alsa Prevent ALSA audio corruption 2020-12-01 09:00:53 +01:00
alsamidi Ensure header guards enclose entire header. 2020-09-04 08:48:35 +02:00
coreaudio SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
coremidi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
dummy Add a debanding property to Viewport for GLES3 2020-10-20 19:07:15 +02:00
gl_context SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gles2 Use correct normal for ReflectionProbe in GLES2 2020-11-26 13:08:30 +01:00
gles3 Batching - BackBuffer copy fix 2020-11-24 14:59:15 +00:00
gles_common Fix ninepatch batch break logic. 2020-11-30 10:29:52 +00:00
png Handle 16 bit PNG files in sRGB format 2020-07-10 08:51:21 +02:00
pulseaudio Ensure header guards enclose entire header. 2020-09-04 08:48:35 +02:00
unix doc: Warn about using Node internal processing 2020-11-26 09:38:45 +01:00
wasapi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
windows Revert "Fix Directory Open Check" 2020-07-28 13:54:13 -04:00
winmidi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
xaudio2 SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
register_driver_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_driver_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Unified GLES2 / GLES3 Batching 2020-10-16 10:34:47 +01:00