pulse: obey Pulse's maximum sample rate (fixes DSD128 playback)
Closes https://github.com/MusicPlayerDaemon/MPD/issues/708
This commit is contained in:
parent
756560eac3
commit
af20a1c994
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.21.19 (not yet released)
|
ver 0.21.19 (not yet released)
|
||||||
|
* output
|
||||||
|
- pulse: obey Pulse's maximum sample rate (fixes DSD128 playback)
|
||||||
* fix build failure with clang 10
|
* fix build failure with clang 10
|
||||||
|
|
||||||
ver 0.21.18 (2019/12/24)
|
ver 0.21.18 (2019/12/24)
|
||||||
|
|
|
@ -650,7 +650,7 @@ PulseOutput::Open(AudioFormat &audio_format)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ss.rate = audio_format.sample_rate;
|
ss.rate = std::min(audio_format.sample_rate, PA_RATE_MAX);
|
||||||
ss.channels = audio_format.channels;
|
ss.channels = audio_format.channels;
|
||||||
|
|
||||||
/* create a stream .. */
|
/* create a stream .. */
|
||||||
|
|
Loading…
Reference in New Issue