diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-06-30 19:09:03 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-07-02 21:43:07 +0200 |
commit | 041557b639fad95919068aba617c0cd1bd7cc6a1 (patch) | |
tree | eef70e4de890cdf2bbba2b81e306d84839e9982e /audio/out/ao.c | |
parent | 7084e800bebdb2a9c1420763a5d1b17d75054bfc (diff) | |
download | mpv-041557b639fad95919068aba617c0cd1bd7cc6a1.tar.bz2 mpv-041557b639fad95919068aba617c0cd1bd7cc6a1.tar.xz |
ao_coreaudio: move spdif code to a new AO
The mplayer1/2/mpv CoreAudio audio output historically contained both usage
of AUHAL APIs (these go through the CoreAudio audio server) and the Device
based APIs (used only for output of compressed formats in exclusive mode).
The latter is a very unwieldy and low level API and pretty much forces us to
write a lot of code for little workr. Also with the widespread of HDMI, the
actual need for outputting compressed audio directly to the device is getting
lower (it was very useful with S/PDIF for bandwidth constraints not allowing
a number if channels transmitted in LPCM).
Considering how invasive it is (uses hog/exclusive mode), the new AO
(`ao_coreaudio_device`) is not going to be autoprobed but the user will have
to select it.
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r-- | audio/out/ao.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c index 378197bcb3..977b8eb69a 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -38,6 +38,7 @@ extern const struct ao_driver audio_out_oss; extern const struct ao_driver audio_out_coreaudio; +extern const struct ao_driver audio_out_coreaudio_exclusive; extern const struct ao_driver audio_out_rsound; extern const struct ao_driver audio_out_sndio; extern const struct ao_driver audio_out_pulse; @@ -94,6 +95,9 @@ static const struct ao_driver * const audio_out_drivers[] = { #if HAVE_ENCODING &audio_out_lavc, #endif +#if HAVE_COREAUDIO + &audio_out_coreaudio_exclusive, +#endif #if HAVE_RSOUND &audio_out_rsound, #endif |