On Thu, Sep 08, 2016 at 08:22:16AM +0100, Stuart Henderson wrote: > On 2016/09/08 13:47, Michael W. Bombardieri wrote: > > Hi Alexandre, > > > > Do you know if any applications in ports use /dev/sound as default audio > > device. > > Maybe they are not smart enough to try /dev/audio if /dev/sound fails. > > Here are search results - there are false positoves from /dev/sound/XX > from Linux, and possibly others from Solaris, so needs further checking. >
Thanks for the list; indeed the /dev/sound/xxx don't matter. The one that metter are all false positives as well. > $ ag /dev/sound > ports/x11/mplayer/patches/patch-stream_tvi_bsdbt848_c > 82: priv->dspdev = strdup("/dev/sound"); this one is disabled with #ifdef > u/libmikmod-3.3.8/libmikmod-3.3.8/drivers/drv_sun.c > 83:#define SOUNDDEVICE "/dev/sound" this is the sun backend but we use sndio > u/sidplay-1.0.9/sidplay-base-1.0.9/audio/oss/audiodrv.cpp > 10:const char audioDriver::AUDIODEVICE[] = "/dev/sound"; this is the oss backend, we use sndio > u/soundtracker-0.6.8/soundtracker-0.6.8.gtk2/Makefile.am same here > u/xmp-4.0.10/xmp-4.0.10/src/sound_bsd.c > 39: if ((audio_fd = open("/dev/sound", O_WRONLY)) == -1) same here > u/ptlib-2.12.9/ptlib-2.12.9/plugins/sound_oss/sound_oss.cxx > 220: PDirectory devdir = "/dev/sound"; same here > u/sdl2-2.0.4/SDL2-2.0.4/src/audio/SDL_audiodev.c > 43:#define _PATH_DEV_DSP24 "/dev/sound/dsp" > 92: /* Added support for /dev/sound/\* in Linux 2.4 */ > 93: if (((stat("/dev/sound", &sb) == 0) && S_ISDIR(sb.st_mode)) same here > u/frotz-2.44/frotz-2.44/Makefile > 51:#SOUND_DEV = /dev/sound uses oss, sound disabled > u/ufoai-2.5-source/ufoai-2.5-source/src/libs/SDL/src/audio/SDL_audiodev.c > 91: if (((stat("/dev/sound", &sb) == 0) && S_ISDIR(sb.st_mode)) > comes with its own copy of sdl (which contains sndio) > u/uhexen2-1.5.6/hexen2source-1.5.6/engine/h2shared/snd_sun.c > 106: snddev = "/dev/sound"; this is the sun backend, but we use sdl > u/warmux-11.04.1/warmux-11.04/build/android/jni/sdl/src/audio/SDL_audiodev.c > 43:#define _PATH_DEV_DSP24 "/dev/sound/dsp" > 64: /* Added support for /dev/sound/\* in Linux 2.4 */ > 65: if ( ((stat("/dev/sound", &sb) == 0) && > S_ISDIR(sb.st_mode)) && comes with a copy of sdl for android; we use OpenBSD sdl port > u/mpv-0.17.0/mpv-0.17.0/wscript > 536: defines=['PATH_DEV_DSP="/dev/sound"', this is the script to detect oss, we use sndio > u/arts-1.5.10/arts-1.5.10/flow/audioiooss.cc > 103: "/dev/sound", /* NetBSD*/ this is oss backend, we use sndio > u/mplayer-20160306/mplayer-20160306/configure > 5821: def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' same here