Home
last modified time | relevance | path

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

/external/webrtc/common_audio/
Dwav_header.cc149 uint32_t RiffChunkSize(size_t bytes_in_payload, size_t header_size) { in RiffChunkSize() argument
150 return static_cast<uint32_t>(bytes_in_payload + header_size - in RiffChunkSize()
213 const size_t bytes_in_payload = bytes_per_sample * num_samples; in WritePcmWavHeader() local
216 header.riff.header.Size = RiffChunkSize(bytes_in_payload, *header_size); in WritePcmWavHeader()
227 header.data.header.Size = static_cast<uint32_t>(bytes_in_payload); in WritePcmWavHeader()
244 const size_t bytes_in_payload = bytes_per_sample * num_samples; in WriteIeeeFloatWavHeader() local
247 header.riff.header.Size = RiffChunkSize(bytes_in_payload, *header_size); in WriteIeeeFloatWavHeader()
263 header.data.header.Size = static_cast<uint32_t>(bytes_in_payload); in WriteIeeeFloatWavHeader()
415 const size_t bytes_in_payload = header.data.header.Size; in ReadWavHeader() local
418 *num_samples = bytes_in_payload / *bytes_per_sample; in ReadWavHeader()
[all …]