Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
7c03f900
Commit
7c03f900
authored
May 31, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert audio capture to wav (should fix Windows issue
#214
)
parent
91d47f96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/capture/mediacapture.cpp
src/capture/mediacapture.cpp
+3
-2
No files found.
src/capture/mediacapture.cpp
View file @
7c03f900
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment