Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
019ee285
Commit
019ee285
authored
Mar 18, 2006
by
zorglub
Browse files
Don't use %f in equalizer (Closes:#586)
parent
4413d750
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_filter/equalizer.c
View file @
019ee285
...
...
@@ -483,10 +483,13 @@ static int PresetCallback( vlc_object_t *p_this, char const *psz_cmd,
p_sys
->
f_gamp
*=
pow
(
10
,
eqz_preset_10b
[
i
]
->
f_preamp
/
20
.
0
);
for
(
j
=
0
;
j
<
p_sys
->
i_band
;
j
++
)
{
lldiv_t
div
;
p_sys
->
f_amp
[
j
]
=
EqzConvertdB
(
eqz_preset_10b
[
i
]
->
f_amp
[
j
]
);
sprintf
(
psz_newbands
,
"%s %f"
,
psz_newbands
,
eqz_preset_10b
[
i
]
->
f_amp
[
j
]
);
div
=
lldiv
(
eqz_preset_10b
[
i
]
->
f_amp
[
j
]
*
10000000
,
10000000
);
sprintf
(
psz_newbands
,
"%s "
I64Fd
".%07u"
,
psz_newbands
,
div
.
quot
,
(
unsigned
int
)
div
.
rem
);
}
if
(
p_sys
->
b_first
==
VLC_FALSE
)
{
...
...
Write
Preview
Supports
Markdown
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