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

AudioStreamPlayer.seek() does not update playback position #41389

Closed
Cheeseness opened this issue Aug 20, 2020 · 1 comment · Fixed by #46040
Closed

AudioStreamPlayer.seek() does not update playback position #41389

Cheeseness opened this issue Aug 20, 2020 · 1 comment · Fixed by #46040

Comments

@Cheeseness
Copy link
Contributor

Godot version:
3.2.2.stable

OS/device including version:
Fedora 29

Issue description:
Calling AudioStreamPlayer's seek() function does not update the AudioStreamPlayback's internal position, resulting AudioStreamPlayer.get_playback_position() returning unexpected values.

Steps to reproduce:

  1. Run attached project
  2. Wait for some time to pass
  3. Click the pause button to pause playback
  4. Click the reset button to call seek(0), noting the displayed value from get_playback_position() after seek() is called
  5. Click the play button to resume playback, noting the displayed value from get_playback_position() after resuming playback is still not zero

Minimal reproduction project:
audiostreamplayer_seek_test.tar.gz

@EricEzaM
Copy link
Contributor

EricEzaM commented Aug 20, 2020

Confirmed on Win 10. Also occurs on 4.0 eb9cbdc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants