mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-18 08:56:40 -05:00
main part of the native protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@31 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
eecf602476
commit
acb25b3510
62 changed files with 2473 additions and 755 deletions
|
|
@ -220,3 +220,12 @@ uint32_t memblockq_get_length(struct memblockq *bq) {
|
|||
assert(bq);
|
||||
return bq->total_length;
|
||||
}
|
||||
|
||||
uint32_t memblockq_missing_to(struct memblockq *bq, size_t qlen) {
|
||||
assert(bq && qlen);
|
||||
|
||||
if (bq->total_length >= qlen)
|
||||
return 0;
|
||||
|
||||
return qlen - bq->total_length;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue