From b7158bc8ba0f949ca6968adf4e4a5c8fcbdd5280 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 20 Jan 2005 00:01:33 +0000
Subject: [PATCH] Do frequency rounding rather than chopping off the integer
 part (Noticable at the lower notes)

---
 src/conio/cterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conio/cterm.c b/src/conio/cterm.c
index 1506a54ac1..76f4d1ad6d 100644
--- a/src/conio/cterm.c
+++ b/src/conio/cterm.c
@@ -169,7 +169,7 @@ void playnote(int notenum, int notelen, int dotted)
 			break;
 	}
 	duration-=pauselen;
-	BEEP(note_frequency[notenum]/1000,duration);
+	BEEP((note_frequency[notenum]+500)/1000,duration);
 	SLEEP(pauselen);
 }
 
-- 
GitLab