The MTAudioProcessingTap will give a buffer size, it is 4096 in my situation. But I hope the buffer size and be smaller like 512 or 2048
I tried set the AVAudioSession.preferredIOBufferDurationWith(0.005) (I see in https://developer.apple.com/documentation/avfaudio/avaudiosession/1616589-setpreferrediobufferduration?language=objc) , But it’s not working..