aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pcm_buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm_buffer.h b/src/pcm_buffer.h
index 0046b7470..626851990 100644
--- a/src/pcm_buffer.h
+++ b/src/pcm_buffer.h
@@ -65,8 +65,8 @@ pcm_buffer_get(struct pcm_buffer *buffer, size_t size)
/* free the old buffer */
g_free(buffer->buffer);
- /* allocate a new buffer; align at 64kB boundaries */
- buffer->size = (size | 0xffff) + 1;
+ /* allocate a new buffer; align at 8 kB boundaries */
+ buffer->size = ((size - 1) | 0x1fff) + 1;
buffer->buffer = g_malloc(buffer->size);
}