diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-08-05 11:40:17 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-08-05 11:40:17 +0200 |
commit | 9296e6e59b12c133900903a1585115cc6a015fc7 (patch) | |
tree | bd4b7c8a9ff934c247c72a50bbf4db2d746fe911 /src/engine | |
parent | d4febde01c65f89936be5db6fdbe9c462e192e59 (diff) | |
parent | 42fcb208bbdcbd26e17f15150db9d8590abea9cc (diff) |
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/sync/enginesync.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/sync/enginesync.h b/src/engine/sync/enginesync.h index 8374d81155..29fc05ff2b 100644 --- a/src/engine/sync/enginesync.h +++ b/src/engine/sync/enginesync.h @@ -52,11 +52,13 @@ class EngineSync : public BaseSyncableListener { void notifyScratching(Syncable* pSyncable, bool scratching) override; // Used to pick a sync target for cases where master sync mode is not sufficient. - // Guaranteed to pick a Syncable that is a real deck and has an EngineBuffer. + // Guaranteed to pick a Syncable that is a real deck and has an EngineBuffer, + // but can return nullptr if there are no choices. // First choice is master sync, if it's a real deck, // then it will fall back to the first playing syncable deck, // then it will fall back to the first playing deck, // then it will fall back to the first non-playing deck. + // If there is literally nothing loaded, returns nullptr. Syncable* pickNonSyncSyncTarget(EngineChannel* pDontPick) const; // Used to test whether changing the rate of a Syncable would change the rate |