sink, source: Print channel count when reconfiguring

Add this as we might reconfigure the number of channels too.
This commit is contained in:
Arun Raghavan 2022-01-12 16:37:36 -05:00
parent 8d6f415c85
commit 376945dc43
2 changed files with 4 additions and 4 deletions

View file

@ -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 */

View file

@ -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);