mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-05-02 01:59:34 +00:00
fix sync, timeout
This commit is contained in:
parent
af6e29f784
commit
6a9d112239
@ -216,9 +216,7 @@ bool Sync::sync(const Syncer &sync){
|
|||||||
// player->syncEnd();
|
// player->syncEnd();
|
||||||
// } );
|
// } );
|
||||||
|
|
||||||
while (ChronoTime::now() < sync.timeOn) {
|
while (ChronoTime::now() < sync.timeOn) { }
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
|
||||||
}
|
|
||||||
player->setPosition(sync.seek);
|
player->setPosition(sync.seek);
|
||||||
player->syncEnd();
|
player->syncEnd();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user