|
@@ -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);
|
|
|
|