Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rnnoise
Commits
b1f537e0
Unverified
Commit
b1f537e0
authored
Jul 23, 2017
by
Jean-Marc Valin
Browse files
oops
parent
fadeca4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/denoise.c
View file @
b1f537e0
...
...
@@ -312,6 +312,7 @@ int main(int argc, char **argv) {
while
(
1
)
{
kiss_fft_cpx
X
[
FREQ_SIZE
],
Y
[
FREQ_SIZE
],
N
[
FREQ_SIZE
];
float
Ex
[
NB_BANDS
],
Ey
[
NB_BANDS
],
En
[
NB_BANDS
];
float
Ln
[
NB_BANDS
];
float
features
[
NB_FEATURES
];
float
g
[
NB_BANDS
];
float
gf
[
FREQ_SIZE
];
...
...
@@ -341,6 +342,7 @@ int main(int argc, char **argv) {
frame_analysis
(
st
,
X
,
Ex
,
NULL
,
x
);
frame_analysis
(
st
,
N
,
En
,
NULL
,
n
);
for
(
i
=
0
;
i
<
NB_BANDS
;
i
++
)
Ln
[
i
]
=
log10
(
1e-10
+
En
[
i
]);
frame_analysis
(
noisy
,
Y
,
Ey
,
features
,
xn
);
for
(
i
=
0
;
i
<
NB_FEATURES
;
i
++
)
printf
(
"%f "
,
features
[
i
]);
for
(
i
=
0
;
i
<
NB_BANDS
;
i
++
)
{
...
...
@@ -350,7 +352,7 @@ int main(int argc, char **argv) {
interp_band_gain
(
gf
,
g
);
#if 1
for
(
i
=
0
;
i
<
NB_BANDS
;
i
++
)
printf
(
"%f "
,
g
[
i
]);
for
(
i
=
0
;
i
<
NB_BANDS
;
i
++
)
printf
(
"%f "
,
E
n
[
i
]);
for
(
i
=
0
;
i
<
NB_BANDS
;
i
++
)
printf
(
"%f "
,
L
n
[
i
]);
printf
(
"%f
\n
"
,
vad
);
#endif
#if 1
...
...
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