summaryrefslogtreecommitdiff
path: root/third_party/webrtc/src/webrtc/modules/audio_processing/ns
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webrtc/src/webrtc/modules/audio_processing/ns')
-rw-r--r--third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c6
-rw-r--r--third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c
index 1d609140..f3e6a105 100644
--- a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c
+++ b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c
@@ -1204,14 +1204,14 @@ void WebRtcNs_ProcessCore(NoiseSuppressionC* self,
float gainTimeDomainHB = 1.0;
float avgProbSpeechHB, avgProbSpeechHBTmp, avgFilterGainHB, gainModHB;
float sumMagnAnalyze, sumMagnProcess;
+ const float* const* speechFrameHB = NULL;
+ float* const* outFrameHB = NULL;
+ size_t num_high_bands = 0;
// Check that initiation has been done.
assert(self->initFlag == 1);
assert((num_bands - 1) <= NUM_HIGH_BANDS_MAX);
- const float* const* speechFrameHB = NULL;
- float* const* outFrameHB = NULL;
- size_t num_high_bands = 0;
if (num_bands > 1) {
speechFrameHB = &speechFrame[1];
outFrameHB = &outFrame[1];
diff --git a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c
index ed6125aa..7e2a94e0 100644
--- a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c
+++ b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c
@@ -1537,6 +1537,9 @@ void WebRtcNsx_ProcessCore(NoiseSuppressionFixedC* inst,
int norm32no1, norm32no2;
int flag, sign;
int q_domain_to_use = 0;
+ const short* const* speechFrameHB = NULL;
+ short* const* outFrameHB = NULL;
+ size_t num_high_bands = 0;
// Code for ARMv7-Neon platform assumes the following:
assert(inst->anaLen > 0);
@@ -1558,9 +1561,6 @@ void WebRtcNsx_ProcessCore(NoiseSuppressionFixedC* inst,
assert(inst->initFlag == 1);
assert((num_bands - 1) <= NUM_HIGH_BANDS_MAX);
- const short* const* speechFrameHB = NULL;
- short* const* outFrameHB = NULL;
- size_t num_high_bands = 0;
if (num_bands > 1) {
speechFrameHB = &speechFrame[1];
outFrameHB = &outFrame[1];