osx_output: allow user to specify other audio devices.

Add new config parameter 'device' to audio_output type "osx":
- if not supplied or set to "default", open default device
- if set to "system", open system device
- otherwise 'device' should be an audio device name: mpd will find and
  open the specified audio device, falling back to the default
  device if it's not found
This commit is contained in:
Greg Ward
2010-12-20 22:21:46 -05:00
committed by Max Kellermann
parent c7f5a87258
commit 80dc602193
3 changed files with 122 additions and 2 deletions

View File

@@ -1319,7 +1319,7 @@ enable_osx=no
case "$host_os" in
darwin*)
AC_DEFINE(HAVE_OSX, 1, [Define for compiling OS X support])
MPD_LIBS="$MPD_LIBS -framework AudioUnit -framework CoreServices"
MPD_LIBS="$MPD_LIBS -framework AudioUnit -framework CoreAudio -framework CoreServices"
enable_osx=yes ;;
esac