mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
sink, source: Print channel count when reconfiguring
Add this as we might reconfigure the number of channels too.
This commit is contained in:
parent
8d6f415c85
commit
376945dc43
2 changed files with 4 additions and 4 deletions
|
|
@ -1613,8 +1613,8 @@ int pa_sink_reconfigure(pa_sink *s, pa_sample_spec *spec, pa_channel_map *map, b
|
|||
if (!passthrough && pa_sink_used_by(s) > 0)
|
||||
return -1;
|
||||
|
||||
pa_log_debug("Suspending sink %s due to changing format, desired format = %s rate = %u",
|
||||
s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate);
|
||||
pa_log_debug("Suspending sink %s due to changing format, desired format = %s rate = %u, channels = %u",
|
||||
s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate, desired_spec.channels);
|
||||
pa_sink_suspend(s, true, PA_SUSPEND_INTERNAL);
|
||||
|
||||
/* Keep the old channel map in case it changes */
|
||||
|
|
|
|||
|
|
@ -1177,8 +1177,8 @@ int pa_source_reconfigure(pa_source *s, pa_sample_spec *spec, pa_channel_map *ma
|
|||
if (!passthrough && pa_source_used_by(s) > 0)
|
||||
return -1;
|
||||
|
||||
pa_log_debug("Suspending source %s due to changing format, desired format = %s rate = %u",
|
||||
s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate);
|
||||
pa_log_debug("Suspending source %s due to changing format, desired format = %s rate = %u, channels = %u",
|
||||
s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate, desired_spec.channels);
|
||||
|
||||
pa_source_suspend(s, true, PA_SUSPEND_INTERNAL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue