[PATCH v3 4/5] dsound: Calculate opos_num and ipos_num incrementally.