1

I would like to know whether SoX/LibSoX offers the possibility to access a sound device in exclusive/hog mode. The idea is to prevent other applications from accessing the sound card / DAC that is being used by the focal app.

My main target is OSX CoreAudio output, but I am also eager to know about Linux (OSS/Alsa).

I know this is possible in CoreAudio, because I have seen it implemented in several apps, including this open source one.

retrography
  • 6,302
  • 3
  • 22
  • 32

1 Answers1

1

On Mac OS X at least, the answer appears to be no. In http://sourceforge.net/p/sox/code/ci/master/tree/src/coreaudio.c SoX uses the default input or output device but there is no provision for hog mode.

sbooth
  • 16,646
  • 2
  • 55
  • 81
  • SoX can open manually specified devices as well -- see line 137 and on. But you are right, it doesn't seem to contain any provision for an eventual hog mode. Someone should probably do it one day... – retrography Sep 21 '15 at 18:33