ch_pos_i
if (current_byte != patt_bufs[ch_num].buf[ch_pos_i(v_iter->total_bytes,
pos_in_ch = ch_pos_i(v_iter->total_bytes, runtime->channels, v_iter->sample_bytes);