Skip to content

Commit

Permalink
Fix typo in README (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellofuschi authored Jun 4, 2024
1 parent afd30e3 commit 2c3fe68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ There's a ton of them, but these are worth mentioning because they sort of affec
* `@material-ui` - Lots of fully featured highly customizable components for building the UIs with. Theming system with global and per-component overrides of any CSS values.
* `react-router-redux` - the newer one, 5.x.... Mindlessly simple routing with convenient global access due to redux

## How things works
## How things work
The current playback is tracked not by storing the current offset, but instead storing the local time that the player began, the offset it began at, and the playback rate. Any time any of these values change, it rebases them all back to the current time. It means that at any arbitrary moment you can calculate the current offset with...
```js
(Date.now() - state.startTime) * state.playSpeed + state.offset
Expand Down

0 comments on commit 2c3fe68

Please sign in to comment.