From: Keith Packard Date: Tue, 10 Apr 2012 05:25:59 +0000 (-0700) Subject: altos: make megametrum beeper test keep beeping X-Git-Tag: 1.0.9.5~52 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=35e3c47da895bdd868b9b66b98bca64bd82db862 altos: make megametrum beeper test keep beeping Used to measure the beep frequency. Signed-off-by: Keith Packard --- diff --git a/src/megametrum-v0.1/ao_megametrum.c b/src/megametrum-v0.1/ao_megametrum.c index 4d9343e1..eaab9b50 100644 --- a/src/megametrum-v0.1/ao_megametrum.c +++ b/src/megametrum-v0.1/ao_megametrum.c @@ -20,7 +20,11 @@ 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[] = {