godot/drivers
Cooper Harasyn 25b2f82ccf 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.
2020-11-27 16:05:59 -05:00
..
alsa Prevent ALSA audio corruption 2020-11-27 16:05:59 -05:00
alsamidi Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
coreaudio Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
coremidi Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
dummy Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
png Remove empty lines around braces with the formatting script 2020-11-16 23:38:11 -05:00
pulseaudio Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
spirv-reflect SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
unix Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
vulkan Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
wasapi Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
windows Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
winmidi Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
xaudio2 Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
register_driver_types.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
register_driver_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Add all headers to VS Project 2020-09-27 18:03:51 +02:00