mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -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
|
|
@ -443,10 +443,11 @@ int pa_source_output_new(
|
|||
o->thread_info.direct_on_input = o->direct_on_input;
|
||||
|
||||
o->thread_info.delay_memblockq = pa_memblockq_new(
|
||||
"source output delay_memblockq",
|
||||
0,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
0,
|
||||
pa_frame_size(&o->source->sample_spec),
|
||||
&o->source->sample_spec,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
|
|
@ -1433,10 +1434,11 @@ int pa_source_output_finish_move(pa_source_output *o, pa_source *dest, pa_bool_t
|
|||
pa_memblockq_free(o->thread_info.delay_memblockq);
|
||||
|
||||
o->thread_info.delay_memblockq = pa_memblockq_new(
|
||||
"source output delay_memblockq",
|
||||
0,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
0,
|
||||
pa_frame_size(&o->source->sample_spec),
|
||||
&o->source->sample_spec,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue