mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
sink-input: Don't resample passthrough inputs
This commit is contained in:
parent
233ef98bf1
commit
881074907e
1 changed files with 14 additions and 12 deletions
|
|
@ -295,6 +295,8 @@ int pa_sink_input_new(
|
|||
!pa_sample_spec_equal(&data->sample_spec, &data->sink->sample_spec) ||
|
||||
!pa_channel_map_equal(&data->channel_map, &data->sink->channel_map)) {
|
||||
|
||||
/* Note: for passthrough content we need to adjust the output rate to that of the current sink-input */
|
||||
if (!(data->flags & PA_SINK_INPUT_PASSTHROUGH)) /* no resampler for passthrough content */
|
||||
if (!(resampler = pa_resampler_new(
|
||||
core->mempool,
|
||||
&data->sample_spec, &data->channel_map,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue