Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [#2335] Add current playback time & playback rate #2336

Merged
merged 5 commits into from
Jun 4, 2022

Conversation

eonarheim
Copy link
Member

@eonarheim eonarheim commented Jun 4, 2022

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

Closes #2335

This PR adds a new method onto ex.Sound.getCurrentTime() to get the current playback time into the currently playing track.

Additionally this PR adds the current playback rate that can be get/set on ex.Sound.playbackRate, 1.0 is the default playback rate, 2.0 is twice the speed, and 0.5 is half speed.

@github-actions github-actions bot added the enhancement Label applied to enhancements or improvements to existing features label Jun 4, 2022
@eonarheim eonarheim merged commit 832c9dd into main Jun 4, 2022
@eonarheim eonarheim deleted the feature/2335-add-playback-current-time branch June 4, 2022 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Label applied to enhancements or improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide playback position from sound instance
1 participant