feat(libwebrtc): implement WavReader::Reset, ReadSamples for int16_t and Close #17353
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17353"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T18:30:37Z.
What
Implements three libwebrtc exports that threw, adapted from
common_audio/wav_file.cc,audio_util.handfile_wrapper.cc(M134; the code used is the same at M127, as the debt entry records).webrtc::WavReader::Reset()seeks to the data start and restores the unread count;ReadSamples(size_t, int16_t*)reads in chunks of at most 4096 samples, converting IEEE float samples withFloatToS16and checking the corrupt-file conditions as upstream'sRTC_CHECKs do;Close()closes the file wrapper. The 64-byteWavReaderlayout is assumed and recorded indocs/dev/debt/libwebrtc.md.Tested
Linux:
suite.py feat/libwebrtc-wav-readeratf854181d76: CTest 4814/4814 passed; conventions passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)