APM: Removing the redundant VAD output from the integer API
This CL removes the redundant VAD output from the newly introduced
integer API in AudioProcessing.
Bug: webrtc:5298
Change-Id: Iad2b1b97ada7f4863139655526c110e326c6788a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170824
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30832}
diff --git a/modules/audio_processing/audio_processing_impl.cc b/modules/audio_processing/audio_processing_impl.cc
index c19d810..ca73fcf 100644
--- a/modules/audio_processing/audio_processing_impl.cc
+++ b/modules/audio_processing/audio_processing_impl.cc
@@ -1057,8 +1057,7 @@
int AudioProcessingImpl::ProcessStream(const int16_t* const src,
const StreamConfig& input_config,
const StreamConfig& output_config,
- int16_t* const dest,
- VoiceDetectionResult* vad_result) {
+ int16_t* const dest) {
TRACE_EVENT0("webrtc", "AudioProcessing::ProcessStream_AudioFrame");
RETURN_ON_ERR(MaybeInitializeCapture(input_config, output_config));
@@ -1082,16 +1081,6 @@
}
}
- if (vad_result) {
- if (capture_.stats.voice_detected) {
- *vad_result = *capture_.stats.voice_detected
- ? VoiceDetectionResult::kDetected
- : VoiceDetectionResult::kNotDetected;
- } else {
- *vad_result = VoiceDetectionResult::kNotAvailable;
- }
- }
-
if (aec_dump_) {
RecordProcessedCaptureStream(dest, output_config);
}