4cade icon indicating copy to clipboard operation
4cade copied to clipboard

SAM integration

Open roughana opened this issue 3 years ago • 1 comments

WRT https://github.com/a2-4am/4cade/issues/272

This PR provides Total Replay with the ability to simulate speech using the SAM output to the speaker. This is useful for games that rely on the Mockingboard for speech capability but where the user does not have a speech capable Mockingboard. As a bonus, I have also provided the SAM hardware version which the user can select with a keypress (1-7) during game prelaunch to set the slot for their SAM card. This enables users who may have a real SAM card to have the speech output using their card instead (which sounds better than the speaker output). The SAM speech is only considered during prelaunch (so games that don't have speech are not impacted) and only for systems that have 128k and don't have speech enabled mockingboards.

roughana avatar Aug 14 '21 04:08 roughana

SAM.SW, SAM.HW are binaries with shims attached to make them compatible in memory with each other for ease of calling from TR prelaunch. They are both based on disassembled work and full source is not available. Source for the shims could be exposed with more work if desired. These binaries should not need to be modified to support further games. SAM.PHONEMES source is available and potentially could be integrated into the full build in future. It does need to be modified to support further games. I expect some discussion on where this should reside in the build and how to support building it.

roughana avatar Aug 14 '21 04:08 roughana