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