14 Commits
Author SHA1 Message Date
James Dansereau a9cc629de6 port(audio): Phase-3 software mixer + K0_TO_PHYS/bnkf pointer fixes (D198-201)
Software RSP-audio-ucode mixer (macro-swap aXxx -> Impl functions, PD-port
pattern) makes libaudio output audible on PC. Alongside it, two pointer-width
bugs surfaced by exercising the audio path for the first time:

- D198: alAdpcmPull/_decodeChunk used K0_TO_PHYS (N64 kseg0 mask) on 64-bit
  heap pointers; switched to osVirtualToPhysical like every sibling call site.
- D201: bnkf.c bank/inst/sound/wavetable relocation offsets were s32,
  truncating the real 64-bit base pointer for ~50% of allocations; widened
  to uintptr_t.
- D200 (already committed-pending from a prior session): reverb's ALDelay
  u32 negative indices zero-extended into +4GB offsets on 64-bit; (s32)/(s64)
  casts match PD ground truth.
- D199: documents the mixer's aSetBuffer persistent-DMEM-context design,
  reconstructed from call-site pairs (no RSP disassembly to check against)
  since there's no N64 audio ucode source to reference.
- D195/D197 (playtest reports referenced by an earlier HANDOFF note but never
  written into findings.md): backfilled as OPEN with next steps.

Verified: ./build-pc.sh ntsc-final links clean; -level_09 runs 600+ frames
crash-free with music + SFX audible.
2026-09-05 07:22:21 -04:00
James Dansereau 999bca81f5 linux-build: use host <strings.h> for bcopy/bcmp/bzero on the POSIX port
glibc's <strings.h> (pulled in transitively, e.g. via _GNU_SOURCE in
port/src/crash.c) declares these with size_t sizes; the N64 prototypes
here use int, which GCC 14 rejects as conflicting types. On
PORT && !_WIN32 include <strings.h> and drop the local decls. Windows
(PORT+_WIN32) and the N64 build (no PORT) keep the original prototypes
unchanged; Windows build verified green (239/239).
2026-09-02 21:57:24 -04:00
KholdFuzion ef209c113c james bond will return. 2026-08-17 13:48:42 -04:00
KholdFuzion cc14d64e7d for england james? 2026-08-16 17:30:25 -04:00
KholdFuzion 9fbe1fd5a8 sync. run make forceextractassets to re extract everythig to c files properly 2026-04-13 09:11:43 -04:00
KholdFuzion dae8a90ff6 Everybody loves a good yearly or so update 2025-04-25 10:11:31 -04:00
KholdFuzion 5aac04b64c update 2023-09-28 11:49:33 -04:00
KholdFuzion 3c9651a097 Figure its time to update this again 2022-10-29 10:41:01 -04:00
KholdFuzion 76f3582e08 update to current private 2022-06-06 15:07:33 -05:00
Larry Ficken ac52aae51e update public from private 2021-03-08 12:58:16 -06:00
kholdfuzion 8f2c5c73bb Add status page and merge private 2020-12-30 11:42:28 -06:00
KholdFuzion c09009d3f4 Update to support shifting, JP, ai macro work and more. 2019-11-13 07:46:56 -06:00
kholdfuzion 3516197a71 oops forgot that
Former-commit-id: 51b7d68a6dc95736271f84b0fc77ebf6d47e52cd [formerly 2c85d1c72fdc9bb1fbf167e646bdeb09ef3ab61e] [formerly a13e518d540596eb3f572666e7dc1f0e9fc23735 [formerly 5a1125980db68c93b676d756a1735174827465c8]]
Former-commit-id: 32929e424314258696aadd1fa822cc97697c1f87 [formerly 40f3f2bb14e103445d97e3a8956926eda59e5f73]
Former-commit-id: 6124ae5e2340b83c14e40668868ecacb9f4d1fa3
2019-08-03 18:01:45 +00:00
kholdfuzion a6f7d68edb update to current progress
Former-commit-id: bed7f1bddb7af09c0f288c1150c6b1c5c106e3be [formerly 02402a0b62d22bfba17d6dfef2f443c1500b450a] [formerly 93bff37d83bad8297647c88c0b42afe81ed277e7 [formerly 08274c78a878dba3fa13551e009ca7aba6528beb]]
Former-commit-id: f66285070e26f0193e87c728c4a0d3913e9a6868 [formerly 85e3eb7005d566d372945751835e29205ff816b4]
Former-commit-id: deff595044d44ac83b2a5c920a64abb2d97054f5
2019-08-03 17:56:46 +00:00