projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9804528
)
altos: make megametrum beeper test keep beeping
author
Keith Packard
<keithp@keithp.com>
Tue, 10 Apr 2012 05:25:59 +0000
(22:25 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/megametrum-v0.1/ao_megametrum.c
b/src/megametrum-v0.1/ao_megametrum.c
index 4d9343e1cdcd6a1ea7010d658b9a5aff511794f3..eaab9b50ade2c08772ea116542fe47a0453951e3 100644
(file)
--- 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[] = {