mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
add pa_memblockq_get_nblocks()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2423 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
df73688440
commit
103ceaa944
2 changed files with 8 additions and 0 deletions
|
|
@ -902,3 +902,9 @@ void pa_memblockq_silence(pa_memblockq *bq) {
|
|||
|
||||
pa_assert(bq->n_blocks == 0);
|
||||
}
|
||||
|
||||
unsigned pa_memblockq_get_nblocks(pa_memblockq *bq) {
|
||||
pa_assert(bq);
|
||||
|
||||
return bq->n_blocks;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,4 +167,6 @@ void pa_memblockq_silence(pa_memblockq *bq);
|
|||
/* Check whether we currently are in prebuf state */
|
||||
pa_bool_t pa_memblockq_prebuf_active(pa_memblockq *bq);
|
||||
|
||||
unsigned pa_memblockq_get_nblocks(pa_memblockq *bq);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue