Lines Matching refs:result_frame
33 AudioFrame* result_frame) { in Add() argument
35 RTC_DCHECK(result_frame); in Add()
36 RTC_DCHECK_GT(result_frame->num_channels_, 0); in Add()
37 RTC_DCHECK_EQ(result_frame->num_channels_, frame_to_add.num_channels_); in Add()
39 bool no_previous_data = result_frame->muted(); in Add()
40 if (result_frame->samples_per_channel_ != frame_to_add.samples_per_channel_) { in Add()
42 RTC_DCHECK_EQ(result_frame->samples_per_channel_, 0); in Add()
43 result_frame->samples_per_channel_ = frame_to_add.samples_per_channel_; in Add()
47 if (result_frame->vad_activity_ == AudioFrame::kVadActive || in Add()
49 result_frame->vad_activity_ = AudioFrame::kVadActive; in Add()
50 } else if (result_frame->vad_activity_ == AudioFrame::kVadUnknown || in Add()
52 result_frame->vad_activity_ = AudioFrame::kVadUnknown; in Add()
55 if (result_frame->speech_type_ != frame_to_add.speech_type_) in Add()
56 result_frame->speech_type_ = AudioFrame::kUndefined; in Add()
60 int16_t* out_data = result_frame->mutable_data(); in Add()