Hi, I'm trying to get the iOS hardware buffer size (e.g 512, 1024) and bring that number to ofApp.mm file so I can use it.
I found that this function "static OSStatus soundOutputStreamRenderCallback()" is getting the realtime bufferSize value (this function is located in "SoundOutputStream.h").
The funny thing is this bufferSize dynamically changes depending on the other audio app that is already running in the background. So, If other previously opened synth app uses 512 bufferSize, than my app will start running with 512 bufferSize no matter what bufferSize I set in the beginning.
This is totally fine in general, but since I'm using ofxPd, the Pd's bufferSize (ticksPerBuffer) does not dynamically change whereas ofSoundStream's bufferSize gets changed. This leads my app to produce distorted noisy sound or crash because of this mismatch in the bufferSize.
So what I'm trying to do is get the real-time bufferSize through AU RemoteIO and re-init ofxPd with the new bufferSize whenever there's a change.
But since I'm not really experienced with objective-C, I couldn't figure out how to bring the bufferSize(int) from "SoundOutputStream.h" to use it in ofApp.mm file.
I would really really appreciate if someone could help me out with this. please.