mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
a24ef929a4
PulseAudio defines PA_RATE_MAX as the maximum sampling rate that it supports. We were previously exposing a maximum rate of INT_MAX, which is incorrect, but worked because nothing was really using a rate greater than 384000 kHz. While playing DSD data, we hit a case where there might be very high sample rates (>1MHz), and pulsesink fails during stream creation with such streams because it erroneously advertises that it supports such rates. Since PA_RATE_MAX is #define'd to (8*48000U), we can't just use it in the caps string. Instead, we fix up the rate to what we actually support whenever we use our macro caps. |
||
---|---|---|
.. | ||
Makefile.am | ||
meson.build | ||
plugin.c | ||
pulsedeviceprovider.c | ||
pulsedeviceprovider.h | ||
pulsesink.c | ||
pulsesink.h | ||
pulsesrc.c | ||
pulsesrc.h | ||
pulseutil.c | ||
pulseutil.h |