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:
parent
ab5a977c79
commit
f80decdc0c
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user