From e0c62da7a6f80b5f9f6177f00a9072e894663a5a Mon Sep 17 00:00:00 2001 From: Fabio Olimpieri Date: Sun, 8 Jan 2017 22:20:17 +0100 Subject: [PATCH] Updated V14 text in the old menu, sleep 1ms when wait for new sound data --- src/menus.c | 2 +- src/sound.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menus.c b/src/menus.c index 21d39e3..7fa32a2 100644 --- a/src/menus.c +++ b/src/menus.c @@ -336,7 +336,7 @@ void help_menu() { clean_screen(); - print_string(fbuffer,"FBZX Wii (11.0)",-1,20,15,0,ancho); + print_string(fbuffer,"FBZX Wii (14.0)",-1,20,15,0,ancho); print_string(fbuffer,"Available keys",-1,50,14,0,ancho); print_string(fbuffer,"Shift:Caps Shift Ctrl:Symbol Shift",-1,95,11,0,ancho); diff --git a/src/sound.c b/src/sound.c index 703ef0a..6379441 100644 --- a/src/sound.c +++ b/src/sound.c @@ -605,7 +605,7 @@ void sound_play() { started_sound_asnd = 1; } //Double buffer - while (!ASND_TestVoiceBufferReady(1)){}; //Wait for one buffer to be free + while (!ASND_TestVoiceBufferReady(1)){usleep(1000);}; //Wait for one buffer to be free if (!ASND_TestPointer (1, sound[0])) {ASND_AddVoice(1,sound[0],ordenador.buffer_len*ordenador.increment); ordenador.current_buffer = sound[0]; }