mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-12-26 02:01:50 +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) {
|
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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user