About the master output audio buffer

I am thinking to create an audio filter applying to the master output, and am curious if there is a way to get access to the audio buffer on the master output (should also allow me to write back the processed samples back to the audio buffer)?

Thanks

Did you find a way to achieve this?

I am interested to know as well.