Improve sound_poll

This commit is contained in:
Robin Jones 2024-10-25 13:11:29 +01:00
parent 004f182e29
commit a1f2a5d56b

View File

@ -97,9 +97,7 @@ void sound_deinit (void) {
} }
void sound_poll (void) { void sound_poll (void) {
if (sound_initialized && audio_can_write()) { if (sound_initialized) {
short *audio_buffer = audio_write_begin(); mixer_try_play();
mixer_poll(audio_buffer, audio_get_buffer_length());
audio_write_end();
} }
} }