static void create_syncs(/*unsigned long*/int sps) {
        int i;
        /*unsigned long*/
        int val = sps;

        for (i = 0; i < SYNCS_MAX1; i++) {
            sync_times1[i] = val;
            val += sps;
        }

        val = 0;
        for (i = 0; i < SYNCS_MAX2; i++) {
            sync_times2[i] = val;
            sync_times2[i] >>>= 2;
            val += sps;
        }
    }