public void handler(int offset, int data) {
            kingball_sound = (kingball_sound & ~0x02) | (data << 1);
            soundlatch_w.handler(0, kingball_sound | 0xf0);
            if (errorlog != null) {
                fprintf(errorlog, "kingball_sample play: %02x (%02x)\n", kingball_sound, data);
            }
        }