mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 09:26:15 +02:00
added "TARGET=MAC" and dummy CoreAudio player
This commit is contained in:
parent
875bbf9551
commit
71e0a89e29
8 changed files with 119 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue