summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-09 22:25:59 -0700
committerKeith Packard <keithp@keithp.com>2012-04-09 22:25:59 -0700
commit35e3c47da895bdd868b9b66b98bca64bd82db862 (patch)
tree1267574dfb27c56ae32203096f5dfa2e1cba8533
parent9804528e249db256e020d4b5340ba6216d3474f0 (diff)
altos: make megametrum beeper test keep beeping
Used to measure the beep frequency. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/megametrum-v0.1/ao_megametrum.c6
1 files changed, 5 insertions, 1 deletions
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[] = {