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
|
|
@ -1608,10 +1608,10 @@ int pa__init(pa_module*m) {
|
|||
|
||||
pa_sink_input_get_silence(u->sink_input, &silence);
|
||||
|
||||
u->source_memblockq = pa_memblockq_new(0, MEMBLOCKQ_MAXLENGTH, 0,
|
||||
pa_frame_size(&source_ss), 1, 1, 0, &silence);
|
||||
u->sink_memblockq = pa_memblockq_new(0, MEMBLOCKQ_MAXLENGTH, 0,
|
||||
pa_frame_size(&sink_ss), 1, 1, 0, &silence);
|
||||
u->source_memblockq = pa_memblockq_new("module-echo-cancel source_memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0,
|
||||
&source_ss, 1, 1, 0, &silence);
|
||||
u->sink_memblockq = pa_memblockq_new("module-echo-cancel sink_memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0,
|
||||
&sink_ss, 1, 1, 0, &silence);
|
||||
|
||||
pa_memblock_unref(silence.memblock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue