From 2dce60fd7b700bfbbd1d4b9f595d39cddc980779 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 26 Jun 2008 20:04:33 +0000 Subject: [PATCH] click noise fixed when 940 was used git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@498 be3aeb3a-fb24-0410-a615-afba39da0efa --- gp2x/940ctl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gp2x/940ctl.c b/gp2x/940ctl.c index b372d92..ee250f8 100644 --- a/gp2x/940ctl.c +++ b/gp2x/940ctl.c @@ -82,10 +82,6 @@ int YM2612Write_940(unsigned int a, unsigned int v, int scanline) upd = 0; break; - case 1: /* data port 0 */ - if (ST_address == 0x2b) upd = 0; /* DAC sel */ - break; - case 2: /* address port 1 */ if (addr_A1 == 1 && ST_address == v) return 0; @@ -403,8 +399,8 @@ int YM2612UpdateOne_940(int *buffer, int length, int stereo, int is_buf_empty) /* predict sample counter for next frame */ if (PsndLen_exc_add) { - if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length = PsndLen + 1; - else length = PsndLen; + length = PsndLen; + if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length++; } /* give 940 ym job */ -- 2.39.5