Home
last modified time | relevance | path

Searched refs:read_samples (Results 1 – 9 of 9) sorted by relevance

/external/webrtc/common_audio/
Dwav_file_unittest.cc158 float read_samples[kNumSamples]; in TEST() local
159 EXPECT_EQ(kNumSamples, r.ReadSamples(kNumSamples, read_samples)); in TEST()
161 EXPECT_NEAR(samples[i], read_samples[i], 1); in TEST()
163 EXPECT_EQ(0u, r.ReadSamples(kNumSamples, read_samples)); in TEST()
165 int16_t read_samples[kNumSamples]; in TEST() local
166 EXPECT_EQ(kNumSamples, r.ReadSamples(kNumSamples, read_samples)); in TEST()
168 EXPECT_NEAR(samples[i], static_cast<float>(read_samples[i]), 1); in TEST()
170 EXPECT_EQ(0u, r.ReadSamples(kNumSamples, read_samples)); in TEST()
/external/webrtc/modules/audio_device/include/
Dtest_audio_device_unittest.cc57 std::vector<int16_t> read_samples(expected_samples.size()); in RunTest() local
59 reader.ReadSamples(read_samples.size(), read_samples.data())); in RunTest()
60 EXPECT_EQ(expected_samples, read_samples); in RunTest()
62 EXPECT_EQ(0u, reader.ReadSamples(read_samples.size(), read_samples.data())); in RunTest()
/external/webrtc/modules/audio_coding/test/
Dopus_test.cc215 size_t read_samples = 0; in Run() local
267 (written_samples - read_samples) / (channels * frame_length); in Run()
276 &audio[read_samples], frame_length, kMaxBytes, bitstream); in Run()
346 read_samples += frame_length * channels; in Run()
348 if (read_samples == written_samples) { in Run()
349 read_samples = 0; in Run()
/external/webrtc/modules/audio_processing/test/
Dbitexactness_tools.cc63 std::vector<int16_t> read_samples(samples_per_channel * 2); in ReadFloatSamplesFromStereoFile() local
64 stereo_pcm_file->Read(samples_per_channel * 2, read_samples.data()); in ReadFloatSamplesFromStereoFile()
70 read_samples[sample * 2 + channel] / 32768.0f; in ReadFloatSamplesFromStereoFile()
/external/webrtc/modules/audio_coding/neteq/
Daudio_multi_vector_unittest.cc190 size_t read_samples = 5; in TEST_P() local
191 EXPECT_EQ(num_channels_ * read_samples, in TEST_P()
192 vec.ReadInterleaved(read_samples, output)); in TEST_P()
194 read_samples * sizeof(int16_t))); in TEST_P()
200 read_samples * sizeof(int16_t))); in TEST_P()
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dapm_vad.cc65 const auto read_samples = in main() local
67 if (read_samples < audio_frame_len) { in main()
Dvad.cc69 const auto read_samples = in main() local
71 if (read_samples < audio_frame_length) in main()
Dsound_level.cc95 const auto read_samples = in main() local
97 if (read_samples < audio_frame_length) in main()
/external/webrtc/modules/audio_processing/agc2/rnn_vad/
Drnn_vad_tool.cc75 const size_t read_samples = in main() local
77 if (rtc::SafeLt(read_samples, frame_size_10ms)) { in main()