Commit 7c03f900 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

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

parent 91d47f96
...@@ -87,7 +87,7 @@ void MediaCapture::recordAudio(bool record) ...@@ -87,7 +87,7 @@ void MediaCapture::recordAudio(bool record)
connect(m_audioRecorder.get(), SIGNAL(error(QMediaRecorder::Error)), this, SLOT(displayErrorMessage())); connect(m_audioRecorder.get(), SIGNAL(error(QMediaRecorder::Error)), this, SLOT(displayErrorMessage()));
QAudioEncoderSettings audioSettings; QAudioEncoderSettings audioSettings;
audioSettings.setCodec("audio/x-flac"); //audioSettings.setCodec("audio/x-flac");
audioSettings.setBitRate(48000); // Bit rate is set to 48,0000 audioSettings.setBitRate(48000); // Bit rate is set to 48,0000
audioSettings.setChannelCount(2); audioSettings.setChannelCount(2);
m_audioRecorder->setEncodingSettings(audioSettings); m_audioRecorder->setEncodingSettings(audioSettings);
...@@ -143,7 +143,8 @@ void MediaCapture::setCaptureOutputLocation() ...@@ -143,7 +143,8 @@ void MediaCapture::setCaptureOutputLocation()
if (m_videoRecorder.get() != nullptr) { if (m_videoRecorder.get() != nullptr) {
extension = QStringLiteral(".mpeg"); extension = QStringLiteral(".mpeg");
} else if (m_audioRecorder.get() != nullptr) { } else if (m_audioRecorder.get() != nullptr) {
extension = QStringLiteral(".flac"); //extension = QStringLiteral(".flac");
extension = QStringLiteral(".wav");
} }
QString path = captureFolder.absoluteFilePath("capture0000" + extension); 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