I am trying to record from a microphone using QAudioRecorder. I do not want to save the file locally and then read it into a QByteArray. How can I save from the audio recorder to a QByteArray? I tried using QAudioProbe with the audioBufferProbed(QAudioBuffer) signal, but I don't know if it is possible to save the QAudioBuffer as a QByteArray.