mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 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
|
|
@ -556,10 +556,11 @@ static struct session *session_new(struct userdata *u, const pa_sdp_info *sdp_in
|
|||
s->intended_latency = s->sink_latency*2;
|
||||
|
||||
s->memblockq = pa_memblockq_new(
|
||||
"module-rtp-recv memblockq",
|
||||
0,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
pa_frame_size(&s->sink_input->sample_spec),
|
||||
&s->sink_input->sample_spec,
|
||||
pa_usec_to_bytes(s->intended_latency - s->sink_latency, &s->sink_input->sample_spec),
|
||||
0,
|
||||
0,
|
||||
|
|
|
|||
|
|
@ -348,10 +348,11 @@ int pa__init(pa_module*m) {
|
|||
u->source_output = o;
|
||||
|
||||
u->memblockq = pa_memblockq_new(
|
||||
"module-rtp-send memblockq",
|
||||
0,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
MEMBLOCKQ_MAXLENGTH,
|
||||
pa_frame_size(&ss),
|
||||
&ss,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue