mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
click noise fixed when 940 was used
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@498 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
45a1ef7153
commit
52250671ae
2 changed files with 3 additions and 7 deletions
|
@ -839,7 +839,7 @@ int ym2612_write_local(u32 a, u32 d, int is_from_z80)
|
||||||
|
|
||||||
if ((d ^ old_mode) & 0xc0) {
|
if ((d ^ old_mode) & 0xc0) {
|
||||||
#ifdef __GP2X__
|
#ifdef __GP2X__
|
||||||
if (PicoOpt & POPT_EXT_FM) YM2612Write_940(a, d, get_scanline(is_from_z80));
|
if (PicoOpt & POPT_EXT_FM) return YM2612Write_940(a, d, get_scanline(is_from_z80));
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,10 +82,6 @@ int YM2612Write_940(unsigned int a, unsigned int v, int scanline)
|
||||||
upd = 0;
|
upd = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1: /* data port 0 */
|
|
||||||
if (ST_address == 0x2b) upd = 0; /* DAC sel */
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2: /* address port 1 */
|
case 2: /* address port 1 */
|
||||||
if (addr_A1 == 1 && ST_address == v)
|
if (addr_A1 == 1 && ST_address == v)
|
||||||
return 0;
|
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 */
|
/* predict sample counter for next frame */
|
||||||
if (PsndLen_exc_add) {
|
if (PsndLen_exc_add) {
|
||||||
if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length = PsndLen + 1;
|
length = PsndLen;
|
||||||
else length = PsndLen;
|
if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* give 940 ym job */
|
/* give 940 ym job */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue