resampler: Don't expose soxr methods if they are not supported

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=92780
This commit is contained in:
Arun Raghavan 2015-11-06 15:54:55 +05:30
parent 9d2b763e29
commit daf326a9e4

View file

@ -685,6 +685,11 @@ int pa_resample_method_supported(pa_resample_method_t m) {
return 0; return 0;
#endif #endif
#ifndef HAVE_SOXR
if (m >= PA_RESAMPLER_SOXR_MQ && m <= PA_RESAMPLER_SOXR_VHQ)
return 0;
#endif
return 1; return 1;
} }