mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
memblockq: Improve debuggability by storing a name and a sample spec.
These are not used for anything at this point, but this makes it easy to add ad-hoc debug prints that show the memblockq name and to convert between bytes and usecs.
This commit is contained in:
parent
4d930f19f9
commit
666261ece8
21 changed files with 89 additions and 46 deletions
|
|
@ -897,10 +897,11 @@ static struct output *output_new(struct userdata *u, pa_sink *sink) {
|
|||
o->outq = pa_asyncmsgq_new(0);
|
||||
o->sink = sink;
|
||||
o->memblockq = pa_memblockq_new(
|
||||
"module-combine-sink output memblockq",
|
||||
0,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
pa_frame_size(&u->sink->sample_spec),
|
||||
&u->sink->sample_spec,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue