Make the beep duration independent of HZ.

PR:		25201
Submitted by:	Akio Morita amorita@meadow.scphys.kyoto-u.ac.jp
MFC after:	1 week
This commit is contained in:
phk 2001-05-28 21:11:38 +00:00
parent ab5a977c79
commit f80decdc0c
2 changed files with 3 additions and 2 deletions

View File

@ -557,7 +557,8 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
case 'B': /* set bell pitch and duration */
if (tcp->num_param == 2) {
scp->bell_pitch = tcp->param[0];
scp->bell_duration = tcp->param[1];
scp->bell_duration =
(tcp->param[1] * hz + 99) / 100;
}
break;

View File

@ -120,7 +120,7 @@
#define PCBURST 128
#ifndef BELL_DURATION
#define BELL_DURATION 5
#define BELL_DURATION ((5 * hz + 99) / 100)
#define BELL_PITCH 800
#endif