X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fxa.c;h=ad7e8247dd1bfd2dc802ce85ac4ccf6443da1ee2;hp=9b7ed5a96888c27065d23352a02cea2dd4141a96;hb=c2502333b2e56e520bb9ecc2f931a639eee415d7;hpb=003cfc63c69b3e900de768317354dfb80bbf6a55 diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c index 9b7ed5a9..ad7e8247 100644 --- a/plugins/dfsound/xa.c +++ b/plugins/dfsound/xa.c @@ -38,12 +38,12 @@ static int gauss_window[8] = {0, 0, 0, 0, 0, 0, 0, 0}; // MIX XA & CDDA //////////////////////////////////////////////////////////////////////// -INLINE void MixXA(int ns_to) +INLINE void MixXA(int *SSumLR, int ns_to, int decode_pos) { + int cursor = decode_pos; int ns; short l, r; uint32_t v; - int cursor = spu.decode_pos; if(spu.XAPlay != spu.XAFeed || spu.XARepeat > 0) { @@ -90,7 +90,9 @@ INLINE void MixXA(int ns_to) static unsigned long timeGetTime_spu() { -#ifdef _WIN32 +#if defined(NO_OS) + return 0; +#elif defined(_WIN32) return GetTickCount(); #else struct timeval tv;