added "TARGET=MAC" and dummy CoreAudio player

This commit is contained in:
Johannes Pohl 2016-09-11 20:51:01 +02:00
parent 875bbf9551
commit 71e0a89e29
8 changed files with 119 additions and 5 deletions

View file

@ -41,7 +41,7 @@ void TimeProvider::setDiffToServer(double ms)
gettimeofday(&now, NULL);
/// clear diffBuffer if last update is older than a minute
if (!diffBuffer_.empty() && (abs(now.tv_sec - lastTimeSync) > 60))
if (!diffBuffer_.empty() && (std::abs(now.tv_sec - lastTimeSync) > 60))
{
logO << "Last time sync older than a minute. Clearing time buffer\n";
diffToServer_ = ms*1000;