Repository navigation
Address Codex review findings on merged #489, #493, #494 (audio, tools) - #497
Conversation
NGS2: custom-submixer voices now run their filter chain after mixing; a drained custom-sampler stream reports the EMPTY state flag like a sampler. AJM M4AAC: the first non-delay frame is sized from the ADTS channel configuration and one AAC-LC frame before FFmpeg consumes it. tools: unwrap_self reads the SELF record table from 0x20 bounded by the header entry count, keeps only data records and assigns each by its encoded program index (duplicates refused); check_compile keys compile commands against the repository root so sibling build trees work. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DgW4n3qYgi5jAAohEmXRQj
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33ee445fa4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (instance.aacDelayFrames == 0) { | ||
| if (roomChannels == 0) { | ||
| AdtsHeader header{}; | ||
| roomChannels = !raw && ParseAdtsHeader(data, header) ? header.channelConfig : 1; |
There was a problem hiding this comment.
Use the configured channel count for raw AAC
When non-delay output is enabled for a raw stereo or 5.1 instance, the first-frame check always assumes one channel even though OpenAac configures the decoder with AacRawChannels(instance). An output buffer large enough for 1024 mono samples therefore passes this check, FFmpeg consumes the access unit, and the later decoded-size check throws because the actual multichannel frame does not fit, rather than returning AJM_RESULT_NOT_ENOUGH_ROOM with the input unconsumed. Use the raw instance's configured channel count here.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Real, fixed in the latest push: raw input now uses AacRawChannels(instance), the same count OpenAac configures the decoder with.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DgW4n3qYgi5jAAohEmXRQj
Triage of Codex connector findings left unaddressed on merged PRs. Upstream main had none of these fixed (checked read-only).
ApplyFiltersin Render.cpp). Test:TestCustomSubmixerAppliesFilter.sceNgs2VoiceGetStatealready has aSCE_NGS2_RACK_ID_CUSTOM_SAMPLERcase returningNgs2CustomSamplerVoiceState, a distinct 48-byte struct (existing test covers it); returning the sampler struct would break the size contract.TestCustomSamplerReportsEmpty.tools/unself.pydoes.(flags >> 20) & 0xffff. Duplicate indexes are refused. Tests: equal-sized swap with a digest decoy, duplicate refusal, first record at 0x20.Tests run:
tools/testsunwrap_self and check_compile (26 pass; new ones fail on origin/main code), NGS2 custom/render/filter/stream tests (pass; new custom tests fail on old Render.cpp).🤖 Generated with Claude Code