}\r
writebuff_ptr = 0;\r
\r
+ /* predict sample counter for next frame */\r
+ if (PsndLen_exc_add) {\r
+ if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length = PsndLen + 1;\r
+ else length = PsndLen;\r
+ }\r
+\r
/* give 940 ym job */\r
shared_ctl->writebuffsel ^= 1;\r
shared_ctl->length = length;\r