Searched refs:bytes_in_payload (Results 1 – 1 of 1) sorted by relevance
149 uint32_t RiffChunkSize(size_t bytes_in_payload, size_t header_size) { in RiffChunkSize() argument150 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() local216 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() local247 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() local418 *num_samples = bytes_in_payload / *bytes_per_sample; in ReadWavHeader()[all …]