Home
last modified time | relevance | path

Searched refs:pcm_file (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/modules/audio_processing/vad/
Dvoice_activity_detector_unittest.cc61 FILE* pcm_file = in TEST() local
65 ASSERT_TRUE(pcm_file != nullptr); in TEST()
68 ASSERT_EQ(fseek(pcm_file, kStartTimeSec * kSampleRateHz * sizeof(data[0]), in TEST()
73 while (fread(&data[0], sizeof(data[0]), data.size(), pcm_file) == in TEST()
96 FILE* pcm_file = in TEST() local
100 ASSERT_TRUE(pcm_file != nullptr); in TEST()
103 ASSERT_EQ(fseek(pcm_file, kStartTimeSec * kSampleRateHz * sizeof(data[0]), in TEST()
108 while (fread(&data[0], sizeof(data[0]), data.size(), pcm_file) == in TEST()
Dvad_audio_proc_unittest.cc38 FILE* pcm_file = fopen(pcm_file_name.c_str(), "rb"); in TEST() local
39 ASSERT_TRUE(pcm_file != NULL); in TEST()
46 while (fread(data, sizeof(int16_t), kDataLength, pcm_file) == kDataLength) { in TEST()
59 fclose(pcm_file); in TEST()
Dstandalone_vad_unittest.cc66 FILE* pcm_file = in TEST() local
69 ASSERT_TRUE(pcm_file != NULL); in TEST()
82 while (fread(data, sizeof(int16_t), kDataLength, pcm_file) == kDataLength) { in TEST()
105 fclose(pcm_file); in TEST()
/external/webrtc/modules/audio_coding/codecs/isac/
Disac_webrtc_api_test.cc57 auto pcm_file = std::make_unique<PCMFile>(); in GetPcmTestFileReader() local
58 pcm_file->ReadStereo(false); in GetPcmTestFileReader()
59 pcm_file->Open(filename, sample_rate_hz, "rb", /*auto_rewind=*/true); in GetPcmTestFileReader()
60 pcm_file->FastForward(/*num_10ms_blocks=*/100); // Skip initial silence. in GetPcmTestFileReader()
61 RTC_CHECK(!pcm_file->EndOfFile()); in GetPcmTestFileReader()
62 return pcm_file; in GetPcmTestFileReader()
141 auto pcm_file = GetPcmTestFileReader(GetSampleRateHz()); in TEST_P() local
153 pcm_file->Read10MsData(in); in TEST_P()
175 auto pcm_file = GetPcmTestFileReader(GetSampleRateHz()); in TEST_P() local
179 pcm_file->Read10MsData(in); in TEST_P()
[all …]
/external/webrtc/modules/audio_processing/transient/
Dclick_annotate.cc42 FileWrapper pcm_file = FileWrapper::OpenReadOnly(argv[1]); in main() local
43 if (!pcm_file.is_open()) { in main()
74 &pcm_file, audio_buffer_length, audio_buffer.get()); in main()
92 &pcm_file, audio_buffer_length, audio_buffer.get()); in main()
103 pcm_file.Close(); in main()