AudioConverterFillComplexBuffer not working for (E)AC3 in tvOS 18

Since upgrading to tvOS 18, the above function isn't working for me in converting a stream with these formats. It does work in decoding AAC, however.

https://developer.apple.com/documentation/audiotoolbox/1503098-audioconverterfillcomplexbuffer?language=objc

I pass a valid ioOutputDataPacketSize in, but it always comes out as zero.

Has anyone else observed this too?

I wonder if this is related to the issue being discussed widely about 5.1 sound being broken for many people after upgrading to tvOS 18?

https://discussions.apple.com/thread/255769102?login=true&sortBy=rank

EDIT: further information; the callback gets called once, asking for 1 packet (which is ok). I give it one packet and return noErr. However, after this, the callback is never invoked again. Must be a bug?

EDIT2: the same code continues to work correctly on macOS in decoding the same audio stream.

Hello @oviano, thank you for your post. Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software.

Please use Feedback Assistant to submit a bug report, include a sysdiagnose, and post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

AudioConverterFillComplexBuffer not working for (E)AC3 in tvOS 18
 
 
Q