Lines 74-81
Link Here
|
74 |
melody = (struct tone *)arg; |
74 |
melody = (struct tone *)arg; |
75 |
|
75 |
|
76 |
if (melody->pitch != NULL) { |
76 |
if (melody->pitch != NULL) { |
77 |
sysbeep(melody->pitch, melody->duration); |
77 |
sysbeep(melody->pitch, (melody->duration * hz + 99) / 100); |
78 |
timeout(pccard_beep_sub, ++melody, melody->duration); |
78 |
timeout(pccard_beep_sub, ++melody, (melody->duration * hz + 99) / 100); |
79 |
} else |
79 |
} else |
80 |
allow_beep = BEEP_ON; |
80 |
allow_beep = BEEP_ON; |
81 |
} |
81 |
} |
Lines 88-95
Link Here
|
88 |
|
88 |
|
89 |
if (allow_beep == BEEP_ON && melody->pitch != NULL) { |
89 |
if (allow_beep == BEEP_ON && melody->pitch != NULL) { |
90 |
allow_beep = BEEP_OFF; |
90 |
allow_beep = BEEP_OFF; |
91 |
sysbeep(melody->pitch, melody->duration); |
91 |
sysbeep(melody->pitch, (melody->duration * hz + 99) / 100); |
92 |
timeout(pccard_beep_sub, ++melody, melody->duration); |
92 |
timeout(pccard_beep_sub, ++melody, (melody->duration * hz + 99) / 100); |
93 |
} |
93 |
} |
94 |
} |
94 |
} |
95 |
|
95 |
|
96 |
--- |
|
|