How to record and playback samples using Minim library?

Hi,

I’m trying to record and play back sound samples. I found this example using the Minim library: Minim : : Minim : : createRecorder
However, the example requires saving the recorded audio to a file in order to play it back. I would like to write into memory only and playback from there. Is that possible using Minim? If not, is there an alternative?

Thanks a lot in advance.