Welcome!

Final Burn Neo => FBN Development => Topic started by: Death Metal on March 14, 2005, 04:22:43 AM

Title: [Fix] Small sound bug in some V-encrypted Neo-Geo games (v0.2.95.23)
Post by: Death Metal on March 14, 2005, 04:22:43 AM
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.