Repository navigation
Driver 4.18 — several AHI clients at once (mixing). Built from merged PR #2 (feature/multi-client), on top of flype44's 4.17 work.
- Up to four AHI clients play simultaneously (e.g. a game plus CueCD CD music, or two players). The HDMI setup, DMA ring, interrupt and worker are shared; each client keeps its own mix buffer, PCM cursor and Pre/PostTimer pair. The hardware starts with the first client that plays and stops with the last one.
- Clients are summed in a 24-bit accumulator (
pcm_mix), saturated and packed once (pcm_mix_finish); a single client is bit-exact with 4.17. A client whose hooks fail is muted until its next START instead of stopping the others. - Diagnostics:
HDMI_QUERY_FEATURESbit 2,HDMI_QUERY_STATEbits 12-14 (allocated) and 16-18 (playing);HDMIDiagprints them.
ZIP contains compiled binaries, documentation and full source.
Requires Raspberry Pi 4 / CM4, HDMI0, Emu68 1.1+ with gic400.library 1.3+, and AHI 6.x (tested with 6.6). Back up the installed driver and mode file, replace them, then reboot.
Validation: 8 host ASan/UBSan tests passed at packaging, including the new bit-exact mix_test. Native m68k (vamos) tests and physical HDMI/DMA were not re-run during this packaging.