From 8a710ab04cce87c973ee0e74ba0d09f90b973180 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 27 May 2006 06:48:29 +0000 Subject: [PATCH] Revert to BEEP() for the time-being (xpbeep is not working so great on Win32). Bug-fix in cterm_end() - use listSemPost() to signal list semaphore (and get playnote_thread to terminate). --- src/conio/cterm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conio/cterm.c b/src/conio/cterm.c index 6d98c37ee3..9eb031cef1 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); -- GitLab