From a1f2a5d56b7bebdad59f94b9d5d2702e75f06e18 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Fri, 25 Oct 2024 13:11:29 +0100 Subject: [PATCH] Improve sound_poll --- src/menu/sound.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/menu/sound.c b/src/menu/sound.c index c439c4f9..08c5996f 100644 --- a/src/menu/sound.c +++ b/src/menu/sound.c @@ -97,9 +97,7 @@ void sound_deinit (void) { } void sound_poll (void) { - if (sound_initialized && audio_can_write()) { - short *audio_buffer = audio_write_begin(); - mixer_poll(audio_buffer, audio_get_buffer_length()); - audio_write_end(); + if (sound_initialized) { + mixer_try_play(); } }