]> Repos - portaudio/commit
OSS: correct test for unsupported formats
authorEd Maste <emaste@FreeBSD.org>
Tue, 19 Jan 2021 20:00:09 +0000 (15:00 -0500)
committerPhil Burk <philburk@mobileer.com>
Thu, 21 Jan 2021 02:16:21 +0000 (18:16 -0800)
commitfc2a24d3945ccf1a3905750b2ab59ce22f21cb1f
tree9640440a987b308885ce3c909f7c359b793db2ac
parentf13ab77c46eeafa4c1b206912fd215467cf255c4
OSS: correct test for unsupported formats

Previously GetAvailableFormats returned paSampleFormatNotSupported if
AFMT_S16_NE was not supported, regardless of the supported state of any
other formats.  Instead, return paSampleFormatNotSupported if no
supported formats are found.
src/hostapi/oss/pa_unix_oss.c