pulse: obey Pulse's maximum sample rate (fixes DSD128 playback)

Closes https://github.com/MusicPlayerDaemon/MPD/issues/708
This commit is contained in:
Max Kellermann 2020-01-12 07:57:52 +01:00
parent 756560eac3
commit af20a1c994
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.21.19 (not yet released)
* output
- pulse: obey Pulse's maximum sample rate (fixes DSD128 playback)
* fix build failure with clang 10
ver 0.21.18 (2019/12/24)

View File

@ -650,7 +650,7 @@ PulseOutput::Open(AudioFormat &audio_format)
break;
}
ss.rate = audio_format.sample_rate;
ss.rate = std::min(audio_format.sample_rate, PA_RATE_MAX);
ss.channels = audio_format.channels;
/* create a stream .. */