diff options
-rw-r--r-- | tinyplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ void play_sample(FILE *file, unsigned int card, unsigned int device, unsigned in return; } - 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); |