Home
last modified time | relevance | path

Searched refs:audio_frame (Results 1 – 19 of 19) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/test/
DPCMFile.cc116 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 …]
Dopus_test.cc210 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()
Ddelay_test.cc178 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()
DTestVADDTX.cc105 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()
DTestAllCodecs.cc418 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()
DPCMFile.h38 int32_t Read10MsData(AudioFrame& audio_frame);
41 void Write10MsData(AudioFrame& audio_frame);
DTestStereo.cc729 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/
Dacm_receiver.cc42 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 …]
Daudio_coding_module_impl.cc274 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 …]
Daudio_coding_module_impl.h66 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)
Daudio_coding_module_unittest_oldapi.cc208 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 …]
Dacm_receiver.h89 int GetAudio(int desired_freq_hz, AudioFrame* audio_frame);
/external/webrtc/webrtc/common_audio/vad/
Dwebrtc_vad.c58 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/
Daudio_sink.h34 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/
Daudio_conference_mixer_unittest.cc38 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/
Daudio_coding_module.h271 virtual int32_t Add10MsData(const AudioFrame& audio_frame) = 0;
634 AudioFrame* audio_frame) = 0;
/external/webrtc/webrtc/common_audio/vad/include/
Dwebrtc_vad.h70 int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame,
/external/webrtc/webrtc/tools/agc/
Dfake_agc.h25 virtual int Process(const AudioFrame& audio_frame) { in Process() argument
/external/webrtc/webrtc/modules/audio_processing/vad/
Dvad_audio_proc.h32 int ExtractFeatures(const int16_t* audio_frame,