CoreAudioDecoder: fix bug where length was reported incorrectly

- lengthSize needs to contain the size of the output buffer
- Issue #52