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