mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sink, source: Don't care about default and alternate rate in passthrough mode
In passthrough mode the device rate is set to match the stream rate, and the default and alternate rates are ignored.
This commit is contained in:
parent
9aaf053dad
commit
22058713af
2 changed files with 4 additions and 4 deletions
|
|
@ -1389,8 +1389,8 @@ bool pa_sink_update_rate(pa_sink *s, uint32_t rate, bool passthrough) {
|
|||
if (!s->update_rate)
|
||||
return false;
|
||||
|
||||
if (PA_UNLIKELY(default_rate == alternate_rate)) {
|
||||
pa_log_warn("Default and alternate sample rates are the same.");
|
||||
if (PA_UNLIKELY(default_rate == alternate_rate && !passthrough)) {
|
||||
pa_log_debug("Default and alternate sample rates are the same.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -979,8 +979,8 @@ bool pa_source_update_rate(pa_source *s, uint32_t rate, bool passthrough) {
|
|||
if (!s->update_rate)
|
||||
return false;
|
||||
|
||||
if (PA_UNLIKELY(default_rate == alternate_rate)) {
|
||||
pa_log_warn("Default and alternate sample rates are the same.");
|
||||
if (PA_UNLIKELY(default_rate == alternate_rate && !passthrough)) {
|
||||
pa_log_debug("Default and alternate sample rates are the same.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue