From 04d8d38fb39911750f9223b3f27fc02277f10995 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 19 Sep 2017 13:08:55 -0400 Subject: [PATCH] Compilation fixes --- src/AudioIO.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp index dccea844778b..2312cbcffa4a 100644 --- a/src/AudioIO.cpp +++ b/src/AudioIO.cpp @@ -891,10 +891,14 @@ static double streamStartTime = 0; // bias system time to small number static double SystemTime() { +#ifdef __WXGTK__ struct timespec now; clock_gettime(CLOCK_REALTIME, &now); //return now.tv_sec + now.tv_nsec * 0.000000001; return (now.tv_sec + now.tv_nsec * 0.000000001) - streamStartTime; +#else + return Pt_Time() / 1000.0; +#endif } /* RBDDBG */ @@ -4532,7 +4536,7 @@ static void DoSoftwarePlaythrough(const void *inputBuffer, outputBuffer[2*i + 1] = outputBuffer[2*i]; } -extern int BLIPFLAG; /*DEBUG*/ +int BLIPFLAG; /*DEBUG*/ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,