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}
This commit is contained in:
@ -1057,8 +1057,7 @@ void AudioProcessingImpl::EmptyQueuedRenderAudio() {
|
||||
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 @@ int AudioProcessingImpl::ProcessStream(const int16_t* const src,
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user