altos: make megametrum beeper test keep beeping
authorKeith Packard <keithp@keithp.com>
Tue, 10 Apr 2012 05:25:59 +0000 (22:25 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Apr 2012 05:25:59 +0000 (22:25 -0700)
Used to measure the beep frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/megametrum-v0.1/ao_megametrum.c

index 4d9343e1cdcd6a1ea7010d658b9a5aff511794f3..eaab9b50ade2c08772ea116542fe47a0453951e3 100644 (file)
 void
 beep(void)
 {
-       ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(2000));
+       ao_beep(AO_BEEP_MID);
+       printf ("Hit a character to stop..."); flush();
+       getchar();
+       putchar('\n');
+       ao_beep(0);
 }
 
 const struct ao_cmds ao_mm_cmds[] = {