# Sound Sixteen voices of signed 8-bit samples, read straight from the graphics SIMMs' linear space, with stereo volume and a loop. The unit is inside the DL-3329 SSU, clocked at 42.9545 MHz / 2; the DAC (TDA1306T) is clocked at 42.9545 MHz / 3 `[mame]`. The only description is MAME's `cps3_a.cpp` (Philip Bennett, BSD-3-Clause) `[mame]`, tier 5. FinalBurn Neo and JTCPS3 follow it (HYPOTHESIS: read from their sources in Phase 0). No measurement of the board's audio exists in any source read. ## Registers, `040E0000-040E02FF` Sixteen voices × eight longwords (`040E0000 + voice × 0x20`), then the key register. | Longword | High word | Low word | | --- | --- | --- | | 1 | start address, low half | start address, high half | | 2 | | bit 0: loop enable | | 3 | frequency (step) | loop address, low half | | 4 | | loop address, high half | | 5 | end address, low half | end address, high half | | 6 | the same value as longword 5, always | | | 7 | volume right | volume left | | 0 | unused | | `040E0200`, high word: key on/off, one bit per voice. A 0 → 1 change restarts the voice at its start address. Reads return what was written. Addresses are linear graphics-flash addresses minus `400000` (the same offset as the DMA sources; MAME marks it `TODO`). ## Playback, as MAME models it - Output rate: (42,954,545 / 3) / 384 = 37,286.9 Hz. - Position is 20.12 fixed point: each output sample adds `frequency`, and the integer part advances by `frac >> 12`. A frequency of `1000` plays one sample per output sample. - At `start + pos >= end`: with loop enabled, `pos = pos + loop − end` (the loop address is absolute); without, the voice stops contributing but **its key bit stays set**. - Sample × volume, each a signed 16-bit volume ("signed?" is MAME's own doubt), summed over the voices; no interpolation, no envelope. ## Unknowns here - Longwords 5 and 6 are always equal: "one of them probably means loop-end address, but we won't know which until we do tests on real hw" `[mame]` (U24). - A write of `00230000` to offset `0x210` during boot is logged and ignored `[mame]` (U25). - **No source describes a sound interrupt** (checked 2026-11-12). MAME raises only levels 12 (VBlank) and 10 (DMA) and maps acknowledges for 14 and 6 marked "?? unused"; FinalBurn Neo raises only 12 and 10; JTCPS3 and the second FPGA core encode only 12 and 10 onto the IRL pins. 3rd Strike's program calls its sound driver from the VBlank handler (`060006F8`, about half of that handler, 1.3 ms a frame `[board]`), and the decompilation's own account says "There's no separate sound interrupt: the sound driver is a software sequencer ... that the vblank advances once a frame" `[rom]`. **But** the same program installs a handler on auto-vector 71 (IRL levels 14-15), a handler at `0600071E`, which only writes the level-14 acknowledge `05120000` and returns (read in the decompilation in Phase 0; to be re-checked in the game's own program, which holds those bytes at that address). So the program expects that something may raise level 14, and what it is is unknown (U19). Nothing ties it to the sound unit. Write it as: no evidence of a sound interrupt; one unexplained level (C12). - Mixing gain, clipping, whether the hardware interpolates, and the true sample rate (U26). - Which SIMM the samples live in was not checked; the unit addresses the graphics SIMMs as one linear space (minus `400000`), so it can reach all of SIMM 3 to 7. "Samples on SIMM 3" is not supported by any source read (C10). ## Judging it There is nothing to judge against but MAME's stream. The exit test for the sound milestone is therefore a detector: the same register writes produce the same sample stream as MAME's device, with differences named. It is provisional, tier 5, and the certification record must say so. Chip rule: the unit is single-machine. It stays in the board (`cps3/ssu.py`).