diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-10-03 11:28:36 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-10-03 11:28:36 +0200 |
commit | 2e1dc55a158ba850f0aef0800407b32430a317e1 (patch) | |
tree | 2a18dfd73864a009d685beec256715ecefa2b661 | |
parent | e065e802b91ef146a882e0dd7fd080453542e09a (diff) |
New aiorecord/aioplay stub programs.
-rw-r--r-- | src/aiorecord.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aiorecord.cc b/src/aiorecord.cc index 82cc9a1..0c25a29 100644 --- a/src/aiorecord.cc +++ b/src/aiorecord.cc @@ -184,7 +184,7 @@ int main(int argc, char *argv[]) short *p = (short*)pcm; size_t sz = size / sizeof(short); short max = 0; - for(int i = 0; i < sz; i++) { + for(int i = 0; i < (int)sz; i++) { if(abs(p[i]) > max) max = abs(p[i]); } printf("%d\n", (int)max); |