diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/aiorecord.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aiorecord.cc b/src/aiorecord.cc index b159252..7befa64 100644 --- a/src/aiorecord.cc +++ b/src/aiorecord.cc @@ -181,6 +181,7 @@ int main(int argc, char *argv[]) while(running) { char pcm[1024]; size_t size = src->readSamples(pcm, sizeof(pcm)); + (void)fwrite(pcm, size, 1, fp); if(verbose) { short *p = (short*)pcm; size_t sz = size / sizeof(short); @@ -196,7 +197,7 @@ int main(int argc, char *argv[]) memset(spc, ' ', sizeof(spc)); bar[pos] = '\0'; spc[sizeof(spc) - pos] = '\0'; - printf("\rVU [% 6d]: %s%s", avg, spc, bar); + printf("\rVU [% 6d]: %s%s", avg, bar, spc); fflush(stdout); } } |