Author Topic: [Fix] Small sound bug in some V-encrypted Neo-Geo games (v0.2.95.23)  (Read 4466 times)

Offline Death Metal

  • Member
  • ***
  • Posts: 121
  • Karma: +3/-0
  • Crimson Blade
I found some minor bug today in FBA v0.2.95.23 that was causing sound noise in a few Neo-Geo games that need V bitswapping code, and managed to fix it. Just thought it would be useful to mention here.

In src\burn\neogeo\d_neogeo.cpp Find the following line:
Code: [Select]

YM2610ADPCMAROM[nAddress] = pTemp[(i + pInfo->nAddressXor) & 0xffffff] ^ pInfo->nDataXor[nAddress & 0x07];


Change that for the code below (it's almost not different):
Code: [Select]

YM2610ADPCMAROM[nAddress] = pTemp[i & 0xffffff] ^ pInfo->nDataXor[nAddress & 0x07];


That's it. An annoying, unnecesary pInfo->nAddressXor was being added to the i variable, being that the source of the noise.