mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
substract the unused record buffer size from the overall size before calculating the space still left for recording
This commit is contained in:
parent
83b1d7a305
commit
a9c1bb3e85
2 changed files with 5 additions and 4 deletions
|
|
@ -569,7 +569,7 @@ static int update_sw_params(struct userdata *u) {
|
|||
if ((latency = pa_sink_get_requested_latency_within_thread(u->sink)) != (pa_usec_t) -1) {
|
||||
size_t b;
|
||||
|
||||
pa_log_debug("latency set to %0.2f", (double) latency / PA_USEC_PER_MSEC);
|
||||
pa_log_debug("latency set to %0.2fms", (double) latency / PA_USEC_PER_MSEC);
|
||||
|
||||
b = pa_usec_to_bytes(latency, &u->sink->sample_spec);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue