@Override
    public void update() {
        int i;

        if (real_rate == 0) {
            return;
        }

        for (i = 0; i < chip_max; i++) {
            apu_update(i);
            APU[i].buf_pos = 0;
            mixer_play_streamed_sample_16(channel + i, new ShortPtr(APU[i].buffer), buffer_size, real_rate);
        }
    }