Pass value from OFAndroidSoundStream to ofApp

I have found a few clues on passing values from java to cpp for android from the OFActivity class, but I want to send the outBuffer size from the Java OFAndroidSoundStream class to my ofApp.cpp.

It seems each device has a native hardware buffer size and if I don’t set my soundstream buffer to be the same size I get clips and pops in the recordings. If I can get the native buffer size I can initialise my soundstream with the correct buffer and get smooth recordings.

What is a safe way to do this?