Creating a microphone input buffer

I am back to using Juce after a few years and can’t get this to work at all.

I’d like to be able to hear my own voice played back (e.g. mic input then output straight away).
I’m sure I need to use a buffer, can anyone help me get started?
I’ve got other stuff I intend to do with it and I’ve figure that part out it’s just getting a buffer to work that’s evading me!

Assuming your audio inputs are working, you might be able to achieve that by doing nothing in your audio callback. (What that callback exactly is, depends on what kind of Juce project you are doing like a plugin or a standalone application.) Remember to be careful with the acoustic audio feedback that can happen!