Updated V14 text in the old menu, sleep 1ms when wait for new sound data

This commit is contained in:
Fabio Olimpieri 2017-01-08 22:20:17 +01:00
parent 7a2440ad22
commit e0c62da7a6
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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]; }