Commit a24ef929 authored by Committed by Arun Raghavan
pulse: Expose the correct max rate that we support
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.
Showing with 60 additions and 14 deletions