summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-10-03 11:32:09 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-10-03 11:32:09 +0200
commitee61b511d4a2d69e32dc30e2fdc792cbd7632af8 (patch)
tree7e3975bd028d3ce4dfc7505d1395a523753b5599 /src
parent2e1dc55a158ba850f0aef0800407b32430a317e1 (diff)
New aiorecord/aioplay stub programs.
Diffstat (limited to 'src')
-rw-r--r--src/aiorecord.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/aiorecord.cc b/src/aiorecord.cc
index 0c25a29..d3eb061 100644
--- a/src/aiorecord.cc
+++ b/src/aiorecord.cc
@@ -187,7 +187,12 @@ int main(int argc, char *argv[])
for(int i = 0; i < (int)sz; i++) {
if(abs(p[i]) > max) max = abs(p[i]);
}
- printf("%d\n", (int)max);
+ char bar[33];
+ memset(bar, '#', sizeof(bar));
+ bar[max / 10000] = '\0';
+ printf("\r%s"
+ " "
+ "\n", bar);
}
}
fclose(fp);