mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-23 09:28:07 +01:00
15 lines
606 B
Diff
15 lines
606 B
Diff
diff --git a/drivers/alsa/audio_driver_alsa.cpp b/drivers/alsa/audio_driver_alsa.cpp
|
|
index 07b6cc441f..78f4590591 100644
|
|
--- a/drivers/alsa/audio_driver_alsa.cpp
|
|
+++ b/drivers/alsa/audio_driver_alsa.cpp
|
|
@@ -187,7 +187,8 @@ void AudioDriverALSA::thread_func(void *p_udata) {
|
|
int total = 0;
|
|
|
|
while (todo && !ad->exit_thread) {
|
|
- uint8_t *src = (uint8_t *)ad->samples_out.ptr();
|
|
+ // FRT_PATCH_ALSA fix by charasyn (PR 43928)
|
|
+ uint16_t *src = (uint16_t *)ad->samples_out.ptr();
|
|
int wrote = snd_pcm_writei(ad->pcm_handle, (void *)(src + (total * ad->channels)), todo);
|
|
|
|
if (wrote > 0) {
|