X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdac.cpp;h=54bc50be0e8bd968e802e75ecbaa7bb4e46d4b76;hb=18d73fc0c7c2c0efc97af33bf2497326d73c97f9;hp=8c60b5ff710771c3b83c0801e1b9c32e9d4e78b2;hpb=19197c6b601dbfd415ded7ac4918813e1805ca39;p=virtualjaguar diff --git a/src/dac.cpp b/src/dac.cpp index 8c60b5f..54bc50b 100644 --- a/src/dac.cpp +++ b/src/dac.cpp @@ -9,6 +9,7 @@ #include #include "jaguar.h" #include "dac.h" +#include "settings.h" //#define DEBUG_DAC @@ -140,8 +141,8 @@ void SDLSoundCallback(void * userdata, Uint8 * buffer, int length) // int GetCalculatedFrequency(void) { - extern bool hardwareTypeNTSC; - int systemClockFrequency = (hardwareTypeNTSC ? RISC_CLOCK_RATE_NTSC : RISC_CLOCK_RATE_PAL); +// extern bool hardwareTypeNTSC; + int systemClockFrequency = (vjs.hardwareTypeNTSC ? RISC_CLOCK_RATE_NTSC : RISC_CLOCK_RATE_PAL); // We divide by 32 here in order to find the frequency of 32 SCLKs in a row (transferring // 16 bits of left data + 16 bits of right data = 32 bits, 1 SCLK = 1 bit transferred).