Oops, in previous commit(rev.1.4), I replaced

pitch and duration only in ``struct'', I forgot
to replace these in sysbeep and timeout, sorry.
This commit is contained in:
MIHIRA Sanpei Yoshiro 2000-10-31 03:28:02 +00:00
parent 84aa58ab03
commit 3637a0ce8b

View file

@ -73,9 +73,9 @@ pccard_beep_sub(void *arg)
struct tone *melody;
melody = (struct tone *)arg;
if (melody->duration != NULL) {
sysbeep(melody->duration, melody->pitch);
timeout(pccard_beep_sub, ++melody, melody->pitch);
if (melody->pitch != NULL) {
sysbeep(melody->pitch, melody->duration);
timeout(pccard_beep_sub, ++melody, melody->duration);
} else
allow_beep = BEEP_ON;
}
@ -86,10 +86,10 @@ pccard_beep_start(void *arg)
struct tone *melody;
melody = (struct tone *)arg;
if (allow_beep == BEEP_ON && melody->duration != NULL) {
if (allow_beep == BEEP_ON && melody->pitch != NULL) {
allow_beep = BEEP_OFF;
sysbeep(melody->duration, melody->pitch);
timeout(pccard_beep_sub, ++melody, melody->pitch);
sysbeep(melody->pitch, melody->duration);
timeout(pccard_beep_sub, ++melody, melody->duration);
}
}