mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
native: improve logging for buffer_attrs
This commit is contained in:
parent
0555c2ec7c
commit
b5e30764c4
1 changed files with 18 additions and 0 deletions
|
|
@ -858,6 +858,18 @@ static void fix_playback_buffer_attr(playback_stream *s) {
|
||||||
|
|
||||||
pa_assert(s);
|
pa_assert(s);
|
||||||
|
|
||||||
|
/* pa_log("Client requested: maxlength=%li bytes tlength=%li bytes minreq=%li bytes prebuf=%li bytes", */
|
||||||
|
/* (long) s->buffer_attr.maxlength, */
|
||||||
|
/* (long) s->buffer_attr.tlength, */
|
||||||
|
/* (long) s->buffer_attr.minreq, */
|
||||||
|
/* (long) s->buffer_attr.prebuf); */
|
||||||
|
|
||||||
|
/* pa_log("Client requested: maxlength=%lu ms tlength=%lu ms minreq=%lu ms prebuf=%lu ms", */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.maxlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.tlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.minreq, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.prebuf, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC)); */
|
||||||
|
|
||||||
/* This function will be called from the main thread, before as
|
/* This function will be called from the main thread, before as
|
||||||
* well as after the sink input has been activated using
|
* well as after the sink input has been activated using
|
||||||
* pa_sink_input_put()! That means it may not touch any
|
* pa_sink_input_put()! That means it may not touch any
|
||||||
|
|
@ -984,6 +996,12 @@ static void fix_playback_buffer_attr(playback_stream *s) {
|
||||||
if (s->buffer_attr.prebuf == (uint32_t) -1 ||
|
if (s->buffer_attr.prebuf == (uint32_t) -1 ||
|
||||||
s->buffer_attr.prebuf > max_prebuf)
|
s->buffer_attr.prebuf > max_prebuf)
|
||||||
s->buffer_attr.prebuf = max_prebuf;
|
s->buffer_attr.prebuf = max_prebuf;
|
||||||
|
|
||||||
|
/* pa_log("Client accepted: maxlength=%lu ms tlength=%lu ms minreq=%lu ms prebuf=%lu ms", */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.maxlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.tlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.minreq, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), */
|
||||||
|
/* (unsigned long) (pa_bytes_to_usec(s->buffer_attr.prebuf, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC)); */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called from main context */
|
/* Called from main context */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue