Skip to content

Commit

Permalink
Always use SIO_DEVANY on FreeBSD/DragonFly (mozilla#564)
Browse files Browse the repository at this point in the history
Forcing cubeb to snd/0 is entirely inappropriate for FreeBSD where
using the sndio backend without a running sndiod is completely ok
and does not suffer from the same drawbacks (blocking the audio
device) as ALSA on Linux.

Using SIO_DEVANY (i.e., "default") will cause libsndio to open the
default device /dev/dsp on FreeBSD, so libsndio can be used without
running sndiod or extra configuration like setting the AUDIODEVICE
environment variable.

Regressed by a7b7cdb.

Signed-off-by: Tobias Kortkamp <t@tobik.me>
  • Loading branch information
Tobias Kortkamp authored and achronop committed Jan 7, 2020
1 parent aa63601 commit 3ab5075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cubeb_sndio.c
Expand Up @@ -128,7 +128,7 @@ s16_to_float(void *ptr, long nsamp)
static const char *
sndio_get_device()
{
#ifndef __OpenBSD__
#ifdef __linux__
/*
* On other platforms default to sndio devices,
* so cubebs other backends can be used instead.
Expand Down

0 comments on commit 3ab5075

Please sign in to comment.