Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
e19ec6c5
Commit
e19ec6c5
authored
Sep 28, 2022
by
Jean-Baptiste Mardelle
Browse files
Align master audio level with MLT's audiolevel filter (use only the first 200 samples)
parent
d1bdc451
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/scopes/monitoraudiolevel.cpp
View file @
e19ec6c5
...
...
@@ -43,6 +43,8 @@ void MonitorAudioLevel::refreshScope(const QSize & /*size*/, bool /*full*/)
if
(
samples
<=
0
)
{
continue
;
}
// TODO: the 200 value is aligned with the MLT audiolevel filter, but seems arbitrary.
samples
=
qMin
(
200
,
samples
);
int
channels
=
sFrame
.
get_audio_channels
();
QVector
<
double
>
levels
;
const
int16_t
*
audio
=
sFrame
.
get_audio
();
...
...
Eugen Mohr
@emohr
mentioned in commit
3ba202fb
·
Sep 28, 2022
mentioned in commit
3ba202fb
mentioned in commit 3ba202fbbd7fd9a4118772468cc9d49e7e31794e
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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