documentation for the mFramesPerPacket field of AudioStreamBasicDescription has this:
https://developer.apple.com/documentation/coreaudiotypes/audiostreambasicdescription/1423257-mframesperpacket?language=objc
i know that 50 works for AAC_ELD. but that's only because i tried that particular value... maybe 49 or 51 works as well, and i just didn't try those. there must be a documented way or API way to determine allowed values.
https://developer.apple.com/documentation/coreaudiotypes/audiostreambasicdescription/1423257-mframesperpacket?language=objc
is there a definite table somewhere that lists allowed values for codecs like AAC_ELD, Opus, etc?The number of frames in a packet of audio data. ... For variable bit-rate formats, the value is a larger fixed number, such as 1024 for AAC.
i know that 50 works for AAC_ELD. but that's only because i tried that particular value... maybe 49 or 51 works as well, and i just didn't try those. there must be a documented way or API way to determine allowed values.