简体   繁体   中英

Unable to change buffer size via settings

I have a custom C node done with AudioKitEX. My node always receives a buffer size of 512. I've tried changing the settings to a different buffer size, but the buffer size always stays the same at 512. How can I change it ?

This is what I tried, and I was expecting to get a buffer size of 1024 i my node, but no, still got 512..

Settings.bufferLength = .veryLong
                
try AVAudioSession.sharedInstance().setPreferredIOBufferDuration(Settings.bufferLength.duration)

AudioKit 5.4

Right, so I came to the conclusion that the buffer size is not something that can be set from AudioKit, but it is dictated by the hardware. For example I was getting 512 when running my app on the iOS simulator, but 1024 when running on a real iPhone device...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM