formats: the XMA docs say three subframe sizes, not four #592
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!592
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:xma-doc-subframe-sizes"
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?
Contributor role (optional)
What it changes
The problem on main: the
darner-formatsmodule doc said the XMA2 frame decoder is restricted to "at most two channels, four subframe sizes (512 down to 128), no LFE channel" (crates/darner-formats/src/xma.rs:12). The format and the code have three:FRAME_SAMPLES512,SUBFRAME_SAMPLES128 (:24-32), andRotationsbuilt for "subframes of 128, 256 and 512" (:603); the subframe-length reader takes a 1-bit "not maximal" and then one bit of shift, which yields 512, 256 or 128 and nothing else. The same "four" appeared again in the comment at:910, directly above the code that produces three.This change says three in both places and names them (512, 256 and 128). Documentation only: no code changes.
How it was tested
44cdd32(one commit onc8258f9).cargo test --locked -p darner-formats --lib— 94 passed, 0 failed, 7 ignored.cargo xtask policy— 576 files ok.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: not run to completion here; the pre-existingdarner-gputest deadlock (#224) anddarner-shaderwaterfall fixture failure (#227) make the whole-workspace run non-green on this machine.darner-formats' suite is green.Checklist
main.docs/asset-policy.md(cargo xtask policy: 576 files ok).Checked for overlap
crates/darner-formats/src/xma.rs(checked against the file list of all 189 open pull requests), and no open or closed issue mentions the subframe sizes.[pr-docs] formats: the XMA docs say three subframe sizes, not fourto formats: the XMA docs say three subframe sizes, not fourView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.