AudioQueue buffer size for streaming aac audio
-
03-07-2019 - |
Question
I am playing MP3 audio form a network stream and sometimes gaps are present when using WIFI connection.
I decrease the buffer size, but I am wondering what is the best method for calculating buffer size.
My MP3 stream is 64 Kbits.
I am using 3 buffers, for 64 *1024 each. PacketDescriptions is 512
Thanks a lot
Thierry
Solution
I found the answer!
Best values for me are :
Number of buffers 3 Buffer size 32 * 768 Max packets description 4096
OTHER TIPS
I wonder why did you choose only 24576 bytes. Wasn't it so small for buffer?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow