I tried using the code you posted to save the QByteArray to a file. I get an error, "Windows Media Player cannot play this file."
edit: I did some testing and it saves the microphone data, but it didn't use the codec from the QAudioRecorder.
I tried using the code you posted to save the QByteArray to a file. I get an error, "Windows Media Player cannot play this file."
edit: I did some testing and it saves the microphone data, but it didn't use the codec from the QAudioRecorder.
Last edited by vanillac; 27th March 2015 at 20:39.
If you want to write to a file, then converting into a byte array is just an unnecessary step, you can directly write the "const char*" data into the file.
Cheers,
_
Bookmarks