Revert audio capture to wav (should fix Windows issue #214)

parent 91d47f96
......@@ -87,7 +87,7 @@ void MediaCapture::recordAudio(bool record)
connect(m_audioRecorder.get(), SIGNAL(error(QMediaRecorder::Error)), this, SLOT(displayErrorMessage()));
QAudioEncoderSettings audioSettings;
audioSettings.setCodec("audio/x-flac");
//audioSettings.setCodec("audio/x-flac");
audioSettings.setBitRate(48000); // Bit rate is set to 48,0000
audioSettings.setChannelCount(2);
m_audioRecorder->setEncodingSettings(audioSettings);
......@@ -143,7 +143,8 @@ void MediaCapture::setCaptureOutputLocation()
if (m_videoRecorder.get() != nullptr) {
extension = QStringLiteral(".mpeg");
} else if (m_audioRecorder.get() != nullptr) {
extension = QStringLiteral(".flac");
//extension = QStringLiteral(".flac");
extension = QStringLiteral(".wav");
}
QString path = captureFolder.absoluteFilePath("capture0000" + extension);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment