I had a question about the 60fps audio hack line of code that requires changing. I'm quite the amateur with coding, I've never worked on anything other than GunZ: The Duel, so I might be totally wrong about this, but couldn't you include VideoConfigDiag.h, create a pointer to a video config option, and use a if statement to allow players to choose whether or not to enable it (thus preventing certain games from being messed up?). For example:
Would something like that work(granted that type of pointer works, if not, would it work with a proper pointer?), or am I totally mistaken?
Code:
int period;
VideoConfig pConfig;
if (pConfig.bAudioHack)
{
period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32 * 2);
}
else
period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32);
Would something like that work(granted that type of pointer works, if not, would it work with a proper pointer?), or am I totally mistaken?