feat(libwebrtc): implement AudioFrame::CopyFrom #17856

Closed
alvaroelpob wants to merge 16 commits from upstream-pr/17856 into main
alvaroelpob commented 2026-11-09 18:23:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-09T18:23:31Z.


What

Implement AudioFrame::CopyFrom for frames without packet-info vectors, copying the audio metadata, optional capture timestamp and active samples using the same behavior at WebRTC M127 and M134.

Tested

Linux: suite.py feat/libwebrtc-audio-frame-copyfrom at 5e7bd5218c: CTest 4812/4813 passed; conventions passed. agc_driver_frame_replay_rewind_copy also fails on upstream/main.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #16894
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5228956302 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17856). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-09T18:23:31Z. --- ### What Implement AudioFrame::CopyFrom for frames without packet-info vectors, copying the audio metadata, optional capture timestamp and active samples using the same behavior at WebRTC M127 and M134. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux: `suite.py feat/libwebrtc-audio-frame-copyfrom` at 5e7bd5218c: CTest 4812/4813 passed; conventions passed. `agc_driver_frame_replay_rewind_copy` also fails on upstream/main. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #16894 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-20 14:31:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T14:31:20Z.

Review: APPROVED


Reviewed — looks good

The implementation matches the documented behavior for frames without packet infos, and I found no verified blocking defect in the reviewed code.

What I ran

Reviewed head 8f48b4d5faeed67cd0ef79f20688f6b9d900eb6d using repo_read.py to inspect the prepared diff and targeted source and test context. I did not run tests; the description reports author-run CTest results, which I did not verify.

Results

Check Result Note
Code review passed No verified blocking defect
Tests not run Author-reported results not verified

Negative control

Not run; no test runner was available in this review session.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

Tests and author-reported CTest results were not run or verified. Read the five changed files listed in the manifest, inspecting targeted ranges where relevant; the manifest lists no excluded changed files.

To get this to a good state

Nothing is required. Optional: run the reported test suite on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5994262534 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17856#pullrequestreview-5994262534). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T14:31:20Z. **Review:** APPROVED --- # Reviewed — looks good The implementation matches the documented behavior for frames without packet infos, and I found no verified blocking defect in the reviewed code. ## What I ran Reviewed head `8f48b4d5faeed67cd0ef79f20688f6b9d900eb6d` using `repo_read.py` to inspect the prepared diff and targeted source and test context. I did not run tests; the description reports author-run CTest results, which I did not verify. ## Results | Check | Result | Note | |---|---|---| | Code review | passed | No verified blocking defect | | Tests | not run | Author-reported results not verified | ## Negative control Not run; no test runner was available in this review session. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [AudioFrame implementation at reviewed head](https://github.com/boykopovar/AnyPS5/blob/8f48b4d5faeed67cd0ef79f20688f6b9d900eb6d/core/libs/prx/libwebrtc/src/AudioFrame.cpp) - [AudioFrame tests at reviewed head](https://github.com/boykopovar/AnyPS5/blob/8f48b4d5faeed67cd0ef79f20688f6b9d900eb6d/core/libs/prx/libwebrtc/tests/AudioFrame.cpp) ## Not verified Tests and author-reported CTest results were not run or verified. Read the five changed files listed in the manifest, inspecting targeted ranges where relevant; the manifest lists no excluded changed files. ## To get this to a good state Nothing is required. Optional: run the reported test suite on this head.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17856
No description provided.