X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fxa.c;h=9b7ed5a96888c27065d23352a02cea2dd4141a96;hp=704847b4d9343e93ee4cbe0c7ca10c96bd209854;hb=003cfc63c69b3e900de768317354dfb80bbf6a55;hpb=3aba41853f8dc014ff61e05e8a2c616d89f88715 diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c index 704847b4..9b7ed5a9 100644 --- a/plugins/dfsound/xa.c +++ b/plugins/dfsound/xa.c @@ -90,9 +90,13 @@ INLINE void MixXA(int ns_to) static unsigned long timeGetTime_spu() { +#ifdef _WIN32 + return GetTickCount(); +#else struct timeval tv; gettimeofday(&tv, 0); // well, maybe there are better ways return tv.tv_sec * 1000 + tv.tv_usec/1000; // to do that, but at least it works +#endif } ////////////////////////////////////////////////////////////////////////