mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-12-25 09:41:51 +01:00
Improve sound_poll
This commit is contained in:
parent
004f182e29
commit
a1f2a5d56b
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user