Searched refs:wav_writer (Results 1 – 5 of 5) sorted by relevance
/external/webrtc/modules/audio_processing/test/conversational_speech/ |
D | simulator.cc | 134 WavWriter* wav_writer) { in PadLeftWriteChunk() argument 136 RTC_CHECK(wav_writer); in PadLeftWriteChunk() 137 RTC_CHECK_GE(interval_begin, wav_writer->num_samples()); in PadLeftWriteChunk() 138 size_t padding_size = interval_begin - wav_writer->num_samples(); in PadLeftWriteChunk() 141 wav_writer->WriteSamples(padding.data(), padding_size); in PadLeftWriteChunk() 145 wav_writer->WriteSamples(source_samples.data(), source_samples.size()); in PadLeftWriteChunk() 151 void PadRightWrite(WavWriter* wav_writer, size_t pad_samples) { in PadRightWrite() argument 152 RTC_CHECK(wav_writer); in PadRightWrite() 153 RTC_CHECK_GE(pad_samples, wav_writer->num_samples()); in PadRightWrite() 154 size_t padding_size = pad_samples - wav_writer->num_samples(); in PadRightWrite() [all …]
|
D | generator_unittest.cc | 114 WavWriter wav_writer(filepath, params.sample_rate, params.num_channels); in CreateSineWavFile() local 115 wav_writer.WriteSamples(samples.data(), params.num_samples); in CreateSineWavFile()
|
/external/adhd/cras/client/cras_tests/src/ |
D | audio.rs | 242 wav_writer: WavWriter<BufWriter<File>>, field 259 let wav_writer = WavWriter::create(path, spec).map_err(Error::OpenFile)?; in try_new() localVariable 260 Ok(Self { wav_writer, format }) in try_new() 281 self.wav_writer.write_sample(*sample as i8).map_err(|e| { in write() 291 let mut writer = self.wav_writer.get_i16_writer(num_samples as u32); in write() 329 self.wav_writer.write_sample(sample).map_err(|e| { in write() 343 self.wav_writer.flush().map_err(|e| { in flush()
|
/external/webrtc/modules/audio_mixer/ |
D | audio_mixer_test.cc | 160 webrtc::WavWriter wav_writer(absl::GetFlag(FLAGS_output_file), sample_rate, in main() local 171 wav_writer.WriteSamples(frame.data(), in main()
|
/external/webrtc/modules/audio_device/include/ |
D | test_audio_device.cc | 342 WavFileWriter(std::unique_ptr<WavWriter> wav_writer, in WavFileWriter() argument 346 wav_writer_(std::move(wav_writer)), in WavFileWriter()
|