Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
fd4612ea
Commit
fd4612ea
authored
Dec 29, 2021
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variable name for db conversion.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
077e1019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wmcommon.hh
src/wmcommon.hh
+2
-2
No files found.
src/wmcommon.hh
View file @
fd4612ea
...
...
@@ -190,10 +190,10 @@ db_from_complex (float re, float im, float min_dB)
if
(
abs2
>
0
)
{
constexpr
float
log2_
log10
_factor
=
3.01029995663981
;
// 10 / log2 (10)
constexpr
float
log2_
db
_factor
=
3.01029995663981
;
// 10 / log2 (10)
// glibc log2f is a lot faster than glibc log10
return
log2f
(
abs2
)
*
log2_
log10
_factor
;
return
log2f
(
abs2
)
*
log2_
db
_factor
;
}
else
return
min_dB
;
...
...
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