From: Harvie Date: Mon, 1 Nov 2010 04:29:30 +0000 (+0100) Subject: beatdetect modified to work with dream-strobe X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5ff11565745bfef81cde396527f0ef8eb29abf80;p=mirrors%2FPrograms.git beatdetect modified to work with dream-strobe --- diff --git a/c/ghetto-sound-system/beatdetect.c b/c/ghetto-sound-system/beatdetect.c index d382215..bb4a191 100644 --- a/c/ghetto-sound-system/beatdetect.c +++ b/c/ghetto-sound-system/beatdetect.c @@ -80,7 +80,10 @@ } else { int j; for(j=0;j<128;j++) if((int)buf[j] > 1000) { - printf("BOOM! %d\n", (int)buf[j]); + //printf("BOOM! %d\n", (int)buf[j]); + //puts(""); + putchar('!'); + fflush(stdout); break; } }