Commit af20a1c9 authored by Max Kellermann's avatar Max Kellermann

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

parent 756560ea
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)
......
......@@ -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 .. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment