diff options
author | wm4 <wm4@nowhere> | 2015-07-03 19:07:42 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-03 19:28:00 +0200 |
commit | e9e323f35da7247d8a36f3d2a33a76f8bc98fde0 (patch) | |
tree | caee972a88ae539b44eb9730199c87adb6a978ba /audio/out/ao_coreaudio.c | |
parent | 65e3657bc40dbe66c487063832aa2a84b1952101 (diff) | |
download | mpv-e9e323f35da7247d8a36f3d2a33a76f8bc98fde0.tar.bz2 mpv-e9e323f35da7247d8a36f3d2a33a76f8bc98fde0.tar.xz |
ao_coreaudio_exclusive: support PCM
Until now, this was for AC3 only. For PCM, we used AudioUnit in
ao_coreaudio, and the only reason ao_coreaudio_exclusive exists
is that there is no other way to passthrough AC3.
PCM support is actually rather simple. The most complicated
issue is that modern OS X versions actually do not support
copying through the data; instead everything must go through
float. So we have to deal with virtual and physical format
being different, which causes some complications.
This possibly also doesn't support some other things correctly.
For one, if the device allows non-interleaved output only, we
will probably fail. (I couldn't test it, so I don't even know
what is required. Supporting it would probably be rather
simple, and we already do it with AudioUnit.)
Diffstat (limited to 'audio/out/ao_coreaudio.c')
0 files changed, 0 insertions, 0 deletions