static void apu_dpcmreset(dpcm_t chan) {
        chan.address = 0xC000 + (char) (chan.regs[2] << 6);
        chan.length = (char) (chan.regs[3] << 4) + 1;
        chan.bits_left = chan.length << 3;
        chan.irq_occurred = false;
    }