mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
* add new API function pa_stream_get_buffer_attr().
* modify pacat.c to make use of that new API * extend protocol to allow transfer of the necessary information * update protocol version accordingly git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@976 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b754d5095e
commit
7d975345a5
8 changed files with 109 additions and 5 deletions
|
|
@ -622,3 +622,15 @@ void pa_memblockq_prebuf_force(pa_memblockq *bq) {
|
|||
if (bq->state == RUNNING && bq->prebuf > 0)
|
||||
bq->state = PREBUF;
|
||||
}
|
||||
|
||||
size_t pa_memblockq_get_maxlength(pa_memblockq *bq) {
|
||||
assert(bq);
|
||||
|
||||
return bq->maxlength;
|
||||
}
|
||||
|
||||
size_t pa_memblockq_get_prebuf(pa_memblockq *bq) {
|
||||
assert(bq);
|
||||
|
||||
return bq->prebuf;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue