From 7d651c90b76f2e02503831289a17ccd46ddfd4e6 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 19 Jan 2005 23:39:30 +0000
Subject: [PATCH] BSD /dev/speaker durations are specified in 1/100ths of a
 second, not 1/1000ths.

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

diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c
index ca87e028f0..64dbedd648 100644
--- a/src/xpdev/genwrap.c
+++ b/src/xpdev/genwrap.c
@@ -223,7 +223,7 @@ void DLLCALL unix_beep(int freq, int dur)
 	speaker_fd = open("/dev/speaker", O_WRONLY|O_APPEND);
 	if(speaker_fd != -1)  {
 		tone.frequency=freq;
-		tone.duration=dur;
+		tone.duration=dur/10;
 		ioctl(speaker_fd,SPKRTONE,&tone);
 		close(speaker_fd);
 		return;
-- 
GitLab