You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux raspberrypi-fgts 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux
Debian 10.6 on Raspberry Pi 3
Audio driver: snd_bcm2835
Issue description:
Audio playback is garbled and swaps back and forth between sound channels (ex. sounds playing on only Left/Right channel can be heard on both speakers)
Steps to reproduce:
Run the given project on Raspberry Pi 3 and observe bad audio quality.
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.
Fixesgodotengine#43927.
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.
Fixesgodotengine#43927.
(cherry picked from commit 25b2f82)
HEAVYPOLY
pushed a commit
to HEAVYPOLY/godot
that referenced
this issue
Dec 14, 2020
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.
Fixesgodotengine#43927.
(cherry picked from commit 25b2f82)
Godot version:
3.2.3
OS/device including version:
Linux raspberrypi-fgts 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux
Debian 10.6 on Raspberry Pi 3
Audio driver: snd_bcm2835
Issue description:
Audio playback is garbled and swaps back and forth between sound channels (ex. sounds playing on only Left/Right channel can be heard on both speakers)
Steps to reproduce:
Run the given project on Raspberry Pi 3 and observe bad audio quality.
Minimal reproduction project:
testaudiopi.zip
I have debugged this and have determined that there is a bug in the ALSA driver, please see https://github.com/efornara/frt/issues/14#issuecomment-734964644
The text was updated successfully, but these errors were encountered: