cleanup(AxAdpcmPlayer): rename VoiceInfo mUpdateFlag #930

Merged
coah80 merged 1 commits from cleanup/AxAdpcmPlayer-update-flag into main 2026-10-02 19:43:49 +00:00
coah80 commented 2026-10-02 19:36:02 +00:00 (Migrated from github.com)

Summary

Rename the cross-thread voice update sync flag on VoiceInfo in AxAdpcmPlayer:

old new
unk_0x0C mUpdateFlag
getUnk_0x0C() getUpdateFlag()
setUnk_0x0C() setUpdateFlag()

Evidence:

  • Main thread sets 1 on start / volume / stop
  • calc() promotes 1 → 2
  • Audio-frame callback clears to 0 after processing; skips freed voices unless flag is 2

Left unk_0x08 alone (only ever cleared to 0; never set nonzero in this TU).

Verification

  • Unit: bannerSound/AxAdpcmPlayer.cpp (Matching)
  • Before/after objdiff: 100% (fuzzy / matched code / matched functions)
  • ninja all_source + build/43U/ok
  • DOL sha1: 26116613f624061ba99c8d1a299aaa6efa85670d

Do not merge — waiting on reviewer.

## Summary Rename the cross-thread voice update sync flag on `VoiceInfo` in `AxAdpcmPlayer`: | old | new | | --- | --- | | `unk_0x0C` | `mUpdateFlag` | | `getUnk_0x0C()` | `getUpdateFlag()` | | `setUnk_0x0C()` | `setUpdateFlag()` | Evidence: - Main thread sets `1` on start / volume / stop - `calc()` promotes `1` → `2` - Audio-frame callback clears to `0` after processing; skips freed voices unless flag is `2` Left `unk_0x08` alone (only ever cleared to 0; never set nonzero in this TU). ## Verification - Unit: `bannerSound/AxAdpcmPlayer.cpp` (Matching) - Before/after objdiff: 100% (fuzzy / matched code / matched functions) - `ninja all_source` + `build/43U/ok` - DOL sha1: `26116613f624061ba99c8d1a299aaa6efa85670d` Do not merge — waiting on reviewer.
coah80 commented 2026-10-02 19:43:47 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.