/external/webrtc/webrtc/modules/audio_coding/test/ |
D | PCMFile.cc | 116 int32_t PCMFile::Read10MsData(AudioFrame& audio_frame) { in Read10MsData() argument 122 int32_t payload_size = (int32_t) fread(audio_frame.data_, sizeof(uint16_t), in Read10MsData() 126 audio_frame.data_[k] = 0; in Read10MsData() 135 audio_frame.samples_per_channel_ = samples_10ms_; in Read10MsData() 136 audio_frame.sample_rate_hz_ = frequency_; in Read10MsData() 137 audio_frame.num_channels_ = channels; in Read10MsData() 138 audio_frame.timestamp_ = timestamp_; in Read10MsData() 146 void PCMFile::Write10MsData(AudioFrame& audio_frame) { in Write10MsData() argument 147 if (audio_frame.num_channels_ == 1) { in Write10MsData() 149 if (fwrite(audio_frame.data_, sizeof(uint16_t), in Write10MsData() [all …]
|
D | opus_test.cc | 210 AudioFrame audio_frame; in Run() local 251 in_file_mono_.Read10MsData(audio_frame); in Run() 256 in_file_stereo_.Read10MsData(audio_frame); in Run() 261 resampler_.Resample10Msec(audio_frame.data_, in Run() 262 audio_frame.sample_rate_hz_, in Run() 339 ASSERT_EQ(0, acm_receiver_->PlayoutData10Ms(out_freq_hz_b, &audio_frame)); in Run() 343 audio_frame.data_, in Run() 344 audio_frame.samples_per_channel_ * audio_frame.num_channels_); in Run() 349 if (audio_frame.timestamp_ > start_time_stamp) { in Run() 352 EXPECT_EQ(audio_frame.num_channels_, channels); in Run()
|
D | delay_test.cc | 178 AudioFrame audio_frame; in Run() local 206 in_file_a_.Read10MsData(audio_frame); in Run() 207 ASSERT_GE(acm_a_->Add10MsData(audio_frame), 0); in Run() 208 ASSERT_EQ(0, acm_b_->PlayoutData10Ms(out_freq_hz_b, &audio_frame)); in Run() 210 audio_frame.data_, in Run() 211 audio_frame.samples_per_channel_ * audio_frame.num_channels_); in Run()
|
D | TestVADDTX.cc | 105 AudioFrame audio_frame; in Run() local 107 in_file.Read10MsData(audio_frame); in Run() 108 audio_frame.timestamp_ = time_stamp; in Run() 110 EXPECT_GE(acm_send_->Add10MsData(audio_frame), 0); in Run() 111 acm_receive_->PlayoutData10Ms(kOutputFreqHz, &audio_frame); in Run() 112 out_file.Write10MsData(audio_frame); in Run()
|
D | TestAllCodecs.cc | 418 AudioFrame audio_frame; in Run() local 433 infile_a_.Read10MsData(audio_frame); in Run() 434 CHECK_ERROR(acm_a_->Add10MsData(audio_frame)); in Run() 455 CHECK_ERROR(acm_b_->PlayoutData10Ms(out_freq_hz, &audio_frame)); in Run() 458 outfile_b_.Write10MsData(audio_frame.data_, in Run() 459 audio_frame.samples_per_channel_); in Run()
|
D | PCMFile.h | 38 int32_t Read10MsData(AudioFrame& audio_frame); 41 void Write10MsData(AudioFrame& audio_frame);
|
D | TestStereo.cc | 729 AudioFrame audio_frame; in Run() local 763 in_file_mono_->Read10MsData(audio_frame); in Run() 768 in_file_stereo_->Read10MsData(audio_frame); in Run() 770 EXPECT_GE(acm_a_->Add10MsData(audio_frame), 0); in Run() 795 EXPECT_EQ(0, acm_b_->PlayoutData10Ms(out_freq_hz_b, &audio_frame)); in Run() 799 audio_frame.data_, in Run() 800 audio_frame.samples_per_channel_ * audio_frame.num_channels_); in Run()
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | acm_receiver.cc | 42 AudioFrame* audio_frame) { in SetAudioFrameActivityAndType() argument 46 audio_frame->vad_activity_ = AudioFrame::kVadActive; in SetAudioFrameActivityAndType() 47 audio_frame->speech_type_ = AudioFrame::kNormalSpeech; in SetAudioFrameActivityAndType() 51 audio_frame->vad_activity_ = AudioFrame::kVadPassive; in SetAudioFrameActivityAndType() 52 audio_frame->speech_type_ = AudioFrame::kNormalSpeech; in SetAudioFrameActivityAndType() 56 audio_frame->vad_activity_ = AudioFrame::kVadPassive; in SetAudioFrameActivityAndType() 57 audio_frame->speech_type_ = AudioFrame::kCNG; in SetAudioFrameActivityAndType() 63 audio_frame->speech_type_ = AudioFrame::kPLC; in SetAudioFrameActivityAndType() 67 audio_frame->vad_activity_ = AudioFrame::kVadPassive; in SetAudioFrameActivityAndType() 68 audio_frame->speech_type_ = AudioFrame::kPLCCNG; in SetAudioFrameActivityAndType() [all …]
|
D | audio_coding_module_impl.cc | 274 int AudioCodingModuleImpl::Add10MsData(const AudioFrame& audio_frame) { in Add10MsData() argument 277 int r = Add10MsDataInternal(audio_frame, &input_data); in Add10MsData() 281 int AudioCodingModuleImpl::Add10MsDataInternal(const AudioFrame& audio_frame, in Add10MsDataInternal() argument 283 if (audio_frame.samples_per_channel_ == 0) { in Add10MsDataInternal() 290 if (audio_frame.sample_rate_hz_ > 48000) { in Add10MsDataInternal() 298 if (static_cast<size_t>(audio_frame.sample_rate_hz_ / 100) != in Add10MsDataInternal() 299 audio_frame.samples_per_channel_) { in Add10MsDataInternal() 306 if (audio_frame.num_channels_ != 1 && audio_frame.num_channels_ != 2) { in Add10MsDataInternal() 322 if (PreprocessToAddData(audio_frame, &ptr_frame) < 0) { in Add10MsDataInternal() 683 AudioFrame* audio_frame) { in PlayoutData10Ms() argument [all …]
|
D | audio_coding_module_impl.h | 66 int Add10MsData(const AudioFrame& audio_frame) override; 159 int PlayoutData10Ms(int desired_freq_hz, AudioFrame* audio_frame) override; 214 int Add10MsDataInternal(const AudioFrame& audio_frame, InputData* input_data)
|
D | audio_coding_module_unittest_oldapi.cc | 208 AudioFrame audio_frame; in PullAudio() local 209 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &audio_frame)); in PullAudio() 298 AudioFrame audio_frame; in TEST_F() local 300 EXPECT_EQ(0, acm_->PlayoutData10Ms(kSampleRateHz, &audio_frame)); in TEST_F() 301 EXPECT_EQ(id_, audio_frame.id_); in TEST_F() 302 EXPECT_EQ(0u, audio_frame.timestamp_); in TEST_F() 303 EXPECT_GT(audio_frame.num_channels_, 0u); in TEST_F() 305 audio_frame.samples_per_channel_); in TEST_F() 306 EXPECT_EQ(kSampleRateHz, audio_frame.sample_rate_hz_); in TEST_F() 310 AudioFrame audio_frame; in TEST_F() local [all …]
|
D | acm_receiver.h | 89 int GetAudio(int desired_freq_hz, AudioFrame* audio_frame);
|
/external/webrtc/webrtc/common_audio/vad/ |
D | webrtc_vad.c | 58 int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame, in WebRtcVad_Process() argument 70 if (audio_frame == NULL) { in WebRtcVad_Process() 78 vad = WebRtcVad_CalcVad48khz(self, audio_frame, frame_length); in WebRtcVad_Process() 80 vad = WebRtcVad_CalcVad32khz(self, audio_frame, frame_length); in WebRtcVad_Process() 82 vad = WebRtcVad_CalcVad16khz(self, audio_frame, frame_length); in WebRtcVad_Process() 84 vad = WebRtcVad_CalcVad8khz(self, audio_frame, frame_length); in WebRtcVad_Process()
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
D | audio_sink.h | 34 bool WriteAudioFrame(const AudioFrame& audio_frame) { in WriteAudioFrame() argument 36 audio_frame.data_, in WriteAudioFrame() 37 audio_frame.samples_per_channel_ * audio_frame.num_channels_); in WriteAudioFrame()
|
/external/webrtc/webrtc/modules/audio_conference_mixer/test/ |
D | audio_conference_mixer_unittest.cc | 38 int32_t(const int32_t id, AudioFrame* audio_frame)); 44 int32_t FakeAudioFrame(const int32_t id, AudioFrame* audio_frame) { in FakeAudioFrame() argument 45 audio_frame->CopyFrom(fake_frame_); in FakeAudioFrame()
|
/external/webrtc/webrtc/modules/audio_coding/include/ |
D | audio_coding_module.h | 271 virtual int32_t Add10MsData(const AudioFrame& audio_frame) = 0; 634 AudioFrame* audio_frame) = 0;
|
/external/webrtc/webrtc/common_audio/vad/include/ |
D | webrtc_vad.h | 70 int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame,
|
/external/webrtc/webrtc/tools/agc/ |
D | fake_agc.h | 25 virtual int Process(const AudioFrame& audio_frame) { in Process() argument
|
/external/webrtc/webrtc/modules/audio_processing/vad/ |
D | vad_audio_proc.h | 32 int ExtractFeatures(const int16_t* audio_frame,
|