Lines Matching defs:in_frame
1319 // is required, |*ptr_out| points to |in_frame|.
1320 int AudioCodingModuleImpl::PreprocessToAddData(const AudioFrame& in_frame,
1326 bool resample = (in_frame.sample_rate_hz_ != send_codec_inst_.plfreq);
1332 down_mix = (in_frame.num_channels_ == 2) &&
1336 down_mix = (in_frame.num_channels_ == 2) &&
1341 expected_in_ts_ = in_frame.timestamp_;
1342 expected_codec_ts_ = in_frame.timestamp_;
1344 } else if (in_frame.timestamp_ != expected_in_ts_) {
1346 expected_codec_ts_ += (in_frame.timestamp_ - expected_in_ts_) *
1348 static_cast<double>(in_frame.sample_rate_hz_)));
1349 expected_in_ts_ = in_frame.timestamp_;
1355 expected_in_ts_ += in_frame.samples_per_channel_;
1356 expected_codec_ts_ += in_frame.samples_per_channel_;
1357 *ptr_out = &in_frame;
1362 preprocess_frame_.num_channels_ = in_frame.num_channels_;
1364 const int16_t* src_ptr_audio = in_frame.data_;
1371 if (DownMix(in_frame, WEBRTC_10MS_PCM_AUDIO, dest_ptr_audio) < 0)
1379 preprocess_frame_.samples_per_channel_ = in_frame.samples_per_channel_;
1380 preprocess_frame_.sample_rate_hz_ = in_frame.sample_rate_hz_;
1388 in_frame.sample_rate_hz_,
1403 expected_in_ts_ += in_frame.samples_per_channel_;