]> Repos - portaudio/commit
OSS: include both /dev/dsp and /dev/dsp0
authorEd Maste <emaste@FreeBSD.org>
Tue, 19 Jan 2021 21:09:01 +0000 (16:09 -0500)
committerPhil Burk <philburk@mobileer.com>
Thu, 21 Jan 2021 02:15:56 +0000 (18:15 -0800)
commitf13ab77c46eeafa4c1b206912fd215467cf255c4
tree7a83212b246e4b7e35708b423cadc770f601da1e
parent91debabf3f0697c1ebda2dd1afc051d9acc6ab79
OSS: include both /dev/dsp and /dev/dsp0

On FreeBSD /dev/dsp is the default device but may not be /dev/dsp0.
PortAudio in the FreeBSD ports collection initially had a patch to
replace the default device with /dev/dsp (for example, with three
devices and /dev/dsp1 as the default we'd have /dev/dsp0, /dev/dsp,
/dev/dsp2).  This caused some trouble (the first device is no longer
default) and was later replaced with this change, leaving /dev/dsp
as the first entry, and just adding each /dev/dsp%d that exists.

FreeBSD bugs 208968 and 236118.
src/hostapi/oss/pa_unix_oss.c