Searched refs:bytes_in_payload (Results 1 – 1 of 1) sorted by relevance
133 static inline uint32_t RiffChunkSize(size_t bytes_in_payload) { in RiffChunkSize() argument135 bytes_in_payload + kWavHeaderSize - sizeof(ChunkHeader)); in RiffChunkSize()158 const size_t bytes_in_payload = bytes_per_sample * num_samples; in WriteWavHeader() local161 WriteLE32(&header.riff.header.Size, RiffChunkSize(bytes_in_payload)); in WriteWavHeader()176 WriteLE32(&header.data.header.Size, static_cast<uint32_t>(bytes_in_payload)); in WriteWavHeader()214 const size_t bytes_in_payload = ReadLE32(header.data.header.Size); in ReadWavHeader() local217 *num_samples = bytes_in_payload / *bytes_per_sample; in ReadWavHeader()229 if (ReadLE32(header.riff.header.Size) < RiffChunkSize(bytes_in_payload)) in ReadWavHeader()