C64: add a sample channel

but don't get too excited! it's just $D418 PCM for now...
This commit is contained in:
tildearrow 2025-01-28 17:33:08 -05:00
parent f16b23772e
commit 0d8b97b1a3
8 changed files with 168 additions and 14 deletions

View file

@ -2316,6 +2316,18 @@ void DivEngine::registerSystems() {
SID3PostEffectHandlerMap
);
sysDefs[DIV_SYSTEM_C64_PCM]=new DivSysDef(
_("Commodore 64 (SID 6581) with software PCM"), NULL, 0xe2, 0, 4, false, true, 0, false, (1U<<DIV_SAMPLE_DEPTH_8BIT)|(1U<<DIV_SAMPLE_DEPTH_16BIT), 0, 0,
_("the 6581 had a quirk which allowed playback of 4-bit samples by writing PCM data to the volume register."),
{_("Channel 1"), _("Channel 2"), _("Channel 3"), _("PCM")},
{"CH1", "CH2", "CH3", "P"},
{DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_PCM},
{DIV_INS_C64, DIV_INS_C64, DIV_INS_C64, DIV_INS_AMIGA},
{},
{},
c64PostEffectHandlerMap
);
sysDefs[DIV_SYSTEM_DUMMY]=new DivSysDef(
_("Dummy System"), NULL, 0xfd, 0, 8, false, true, 0, false, 0, 0, 0,
_("this is a system designed for testing purposes."),