Searched refs:kBytesPerSample (Results 1 – 5 of 5) sorted by relevance
/external/webrtc/webrtc/modules/audio_device/ios/ |
D | audio_device_unittest_ios.cc | 62 static const size_t kBytesPerSample = kBitsPerSample / 8; variable 116 test::GetFileSize(file_name) / kBytesPerSample; in FileAudioStream() 139 file_size_in_bytes_ / (kBytesPerSample * sample_rate_)); in file_size_in_seconds() 557 PRINTD("file size: %" PRIuS " [samples]\n", bytes / kBytesPerSample); in GetFileName() 559 static_cast<int>(bytes / (sample_rate * kBytesPerSample)); in GetFileName() 662 mock, NeedMorePlayData(playout_frames_per_10ms_buffer(), kBytesPerSample, in TEST_F() 684 mock2, NeedMorePlayData(playout_frames_per_10ms_buffer(), kBytesPerSample, in TEST_F() 705 kBytesPerSample, playout_channels(), in TEST_F() 721 NotNull(), record_frames_per_10ms_buffer(), kBytesPerSample, in TEST_F() 738 kBytesPerSample, playout_channels(), in TEST_F() [all …]
|
D | audio_device_ios.mm | 83 const UInt32 kBytesPerSample = 2; 810 application_format.mBytesPerPacket = kBytesPerSample; 812 application_format.mBytesPerFrame = kBytesPerSample; 814 application_format.mBitsPerChannel = 8 * kBytesPerSample; 1062 RTC_CHECK_EQ(data_size_in_bytes / kBytesPerSample, in_number_frames); 1094 RTC_CHECK_EQ(dataSizeInBytes / kBytesPerSample, in_number_frames);
|
/external/tensorflow/tensorflow/core/lib/wav/ |
D | wav_io.cc | 141 constexpr size_t kBytesPerSample = kBitsPerSample / 8; in EncodeAudioAsS16LEWav() local 162 const size_t bytes_per_second = sample_rate * kBytesPerSample * num_channels; in EncodeAudioAsS16LEWav() 164 const size_t data_size = num_samples * kBytesPerSample; in EncodeAudioAsS16LEWav() 165 const size_t file_size = kHeaderSize + num_samples * kBytesPerSample; in EncodeAudioAsS16LEWav() 166 const size_t bytes_per_frame = kBytesPerSample * num_channels; in EncodeAudioAsS16LEWav() 205 core::EncodeFixed16(&data[i * kBytesPerSample], in EncodeAudioAsS16LEWav()
|
/external/webrtc/webrtc/common_audio/ |
D | wav_file.cc | 27 static const size_t kBytesPerSample = 2; variable 60 RTC_CHECK_EQ(kBytesPerSample, bytes_per_sample); in WavReader() 109 kBytesPerSample, num_samples_)); in WavWriter() 146 kBytesPerSample, num_samples_); in Close()
|
/external/webrtc/webrtc/modules/audio_device/android/ |
D | audio_device_unittest.cc | 67 static const size_t kBytesPerSample = kBitsPerSample / 8; variable 114 test::GetFileSize(file_name) / kBytesPerSample; in FileAudioStream() 138 file_size_in_bytes_ / (kBytesPerSample * sample_rate_)); in file_size_in_seconds() 583 PRINT("file size: %" PRIuS " [samples]\n", bytes / kBytesPerSample); in GetFileName() 585 static_cast<int>(bytes / (sample_rate * kBytesPerSample)); in GetFileName() 862 kBytesPerSample, in TEST_F() 881 kBytesPerSample, in TEST_F() 904 kBytesPerSample, in TEST_F() 912 kBytesPerSample, in TEST_F()
|