-
Notifications
You must be signed in to change notification settings - Fork 134
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
oto: add a function to get the player's current position #228
Comments
You can use |
I tried it but it doesn't work inside the isPlaying loop. |
Ebitengine already does that. You would have to consider buffer size actually. EDIT: Ebitengine manages its position by itself. In theory you can do the same thing, but I admit this might be troublesome. |
I've worked around it by capturing the duration and start time and using time.Since() to give me the position during IsPlaying. |
Let me reopen this. I might add Position later. |
I am trying to write a music player using oto.
I know how long a track is based on the number of samples and the sample rate.
However, during playback I want to be able to show progress, for which a
Player.Position() int64
is needed.The text was updated successfully, but these errors were encountered: