sschmidTU 3 år sedan
förälder
incheckning
3f2eb509d5
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      src/Playback/PlaybackManager.ts

+ 5 - 1
src/Playback/PlaybackManager.ts

@@ -371,6 +371,10 @@ export class PlaybackManager implements IPlaybackParametersListener {
         // }
     }
 
+    /** Effectively resets the playback to osmd.Sheet.SelectionStart.
+     *  If you want to reset to the start of the sheet,
+     *    call osmd.Sheet.SelectionStart = osmd.Sheet.sourceMeasures[0].AbsoluteTimestamp beforehand.
+     */
     public reset(): void {
         // lock(this.playbackThreadSyncObject) {
         //this.resetRequested = true;
@@ -989,7 +993,7 @@ export class PlaybackManager implements IPlaybackParametersListener {
         }
 
         this.currentMetronomeBaseTimestamp = this.playNextMetronomeAt = Fraction.minus(this.cursorIterator.CurrentEnrolledTimestamp, preCountDuration);
-        //this.timingSource.Reset();
+        //this.timingSource.reset();
         this.timingSource.setTimeAndBpm(this.currentMetronomeBaseTimestamp,
                                         this.cursorIterator.currentPlaybackSettings().BeatsPerMinute);