Audio Meter during audio capture and playback

Hi everyone,
I’m using PsychPortAudio on Matlab R2022b (MacOS). I use it for simultaneous audio capture and playback.
My question is: is there an audio meter as RMS and peak meter to see sound level during the capture/playback?
I’ve seen “loudnessMeter” but it works with dsp.AudioFileReader. Is there an equivalent for PsychPortAudio?

Thanks in advance!
CR

No. But quickly looking at its help, loudnessMeter might work with data from PsychPortAudio as well. It takes a matrix with sound data as input.

How the calibration of all this wrt. the real world is supposed to work escapes me, given that each microphone/speaker/amp/soundcard is different.