diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-25 02:10:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-25 02:10:45 +0100 |
commit | 87cc741d0e10f58c5d9c4b40a213ba9a689cff14 (patch) | |
tree | 06a792c2d0f6f5b165966deadf0f23917231bb32 /src/pulsecore/memblockq.h | |
parent | 5030852c8e4c0a24a3a42e5583358daaad7ec0df (diff) |
memblockq: implement new call pa_memblockq_peek_fixed_size()
Diffstat (limited to 'src/pulsecore/memblockq.h')
-rw-r--r-- | src/pulsecore/memblockq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/memblockq.h b/src/pulsecore/memblockq.h index 402c6cdb..e12f5f7d 100644 --- a/src/pulsecore/memblockq.h +++ b/src/pulsecore/memblockq.h @@ -95,6 +95,11 @@ void pa_memblockq_seek(pa_memblockq *bq, int64_t offset, pa_seek_mode_t seek, pa * was passed we return the length of the hole in chunk->length. */ int pa_memblockq_peek(pa_memblockq* bq, pa_memchunk *chunk); +/* Much like pa_memblockq_peek, but guarantees that the returned chunk + * will have a length of the block size passed. You must configure a + * silence memchunk for this memblockq if you use this call. */ +int pa_memblockq_peek_fixed_size(pa_memblockq *bq, size_t block_size, pa_memchunk *chunk); + /* Drop the specified bytes from the queue. */ void pa_memblockq_drop(pa_memblockq *bq, size_t length); |