Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Unified Diff: webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc

Issue 2288593004: Fix Chromium clang plugin warnings (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc
diff --git a/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc b/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc
index bfb65c0f7704867b9d5e291866a73b14579bc2ed..5d9d32a80d1e293ae951d97e5a647c5ff87d004e 100644
--- a/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc
+++ b/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc
@@ -222,6 +222,8 @@ NonlinearBeamformer::NonlinearBeamformer(
WindowGenerator::KaiserBesselDerived(kKbdAlpha, kFftSize, window_);
}
+NonlinearBeamformer::~NonlinearBeamformer() = default;
+
void NonlinearBeamformer::Initialize(int chunk_size_ms, int sample_rate_hz) {
chunk_length_ =
static_cast<size_t>(sample_rate_hz / (1000.f / chunk_size_ms));
@@ -438,6 +440,8 @@ bool NonlinearBeamformer::IsInBeam(const SphericalPointf& spherical_point) {
kHalfBeamWidthRadians;
}
+bool NonlinearBeamformer::is_target_present() { return is_target_present_; }
+
void NonlinearBeamformer::ProcessAudioBlock(const complex_f* const* input,
size_t num_input_channels,
size_t num_freq_bins,

Powered by Google App Engine
This is Rietveld 408576698