diff --git a/src/conio/cterm.c b/src/conio/cterm.c index 6d98c37ee34b8c5642e37e79a27bd866849c2111..9eb031cef14ed51a930025d92675f7e4e8bfbb06 100644 --- a/src/conio/cterm.c +++ b/src/conio/cterm.c @@ -211,7 +211,7 @@ void playnote_thread(void *args) } duration-=pauselen; if(note->notenum < 72 && note->notenum >= 0) - xpbeep(((double)note_frequency[note->notenum])/1000,duration); + BEEP(((double)note_frequency[note->notenum])/1000,duration); else SLEEP(duration); SLEEP(pauselen); @@ -1507,7 +1507,7 @@ void cterm_end(void) } if(playnote_thread_running) { if(sem_trywait(&playnote_thread_terminated)==-1) { - listPushNode(¬es, NULL); + listSemPost(¬es); sem_wait(&playnote_thread_terminated); } sem_destroy(&playnote_thread_terminated);