1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

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:
Poul-Henning Kamp 2001-05-28 21:11:38 +00:00
parent 142ef1abd5
commit 266aa94283
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77364
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