Home
last modified time | relevance | path

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

/external/webrtc/webrtc/common_audio/
Dwav_header.cc133 static inline uint32_t RiffChunkSize(size_t bytes_in_payload) { in RiffChunkSize() argument
135 bytes_in_payload + kWavHeaderSize - sizeof(ChunkHeader)); in RiffChunkSize()
158 const size_t bytes_in_payload = bytes_per_sample * num_samples; in WriteWavHeader() local
161 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() local
217 *num_samples = bytes_in_payload / *bytes_per_sample; in ReadWavHeader()
229 if (ReadLE32(header.riff.header.Size) < RiffChunkSize(bytes_in_payload)) in ReadWavHeader()