Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Licameli committed Sep 20, 2017
1 parent 2e9e1ca commit 04d8d38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AudioIO.cpp
Expand Up @@ -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 */
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 04d8d38

Please sign in to comment.