static void store_t2l(via_context_t *via_context, BYTE byte) { petsound_store_rate(2 * byte + 4); if (!byte) { petsound_store_onoff(0); } else { petsound_store_onoff(((via_context->via[VIA_ACR] & 0x1c) == 0x10) ? 1 : 0); } }
static void pet_sound_reset(sound_t *psid, CLOCK cpu_clk) { petsound_store_onoff(0); }
static void store_acr(via_context_t *via_context, BYTE byte) { petsound_store_onoff(via_context->via[VIA_T2LL] ? (((byte & 0x1c) == 0x10) ? 1 : 0) : 0); }