[io] sink_apple_audio to use native format conversion
authorPaul Brossier <piem@piem.org>
Wed, 19 Dec 2018 13:24:41 +0000 (14:24 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 19 Dec 2018 13:24:41 +0000 (14:24 +0100)
commit7b5e1a5cb8dbcf879fca6c4ad6ab3f7dfaf088d8
tree3b176cb5d17ea72f7122fdb5359936cf04fa55c9
parentff6d1b6e931ea03c7056f081ea7427f040460fc5
[io] sink_apple_audio to use native format conversion

The important trick here is setting mDataByteSize to the actual number
of frames to be written, as mentionned by James McCartney in [0].

[0]:https://www.mail-archive.com/coreaudio-api@lists.apple.com/msg01109.html
src/io/sink_apple_audio.c