diff options
author | ceskobassman <ceskobassman@gmail.com> | 2013-01-24 16:06:32 +0100 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2013-04-30 13:51:25 -0700 |
commit | 50895678c5006e5538ec465f03ed0d6048d70074 (patch) | |
tree | 9ef4375b13c51aa52f23e36a9a03ad1f02324609 | |
parent | 6bfa2620fbfd98914d8728bba2950221ddae1d25 (diff) |
tinycap: convert size from frames to bytes
-rw-r--r-- | tinycap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -193,7 +193,7 @@ unsigned int capture_sample(FILE *file, unsigned int card, unsigned int device, return 0; } - size = pcm_get_buffer_size(pcm); + size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); buffer = malloc(size); if (!buffer) { fprintf(stderr, "Unable to allocate %d bytes\n", size); |