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

Fix playback position label update in Audio Stream Importer #86824

Merged

Conversation

alessandrofama
Copy link
Contributor

The current playback position label doesn't get updated if the playhead is not visible. This can be visualized in this example:

audio-stream-importer-1.webm

The label is updated in _draw_indicator() at the end of the function, but we return early if the calculated offset falls outside the valid range. This fix moves the label updating above this check, ensuring that the label always gets updated regardless of the visibility of the playhead:

audio-stream-importer-2.webm

Fixes #86550.

The current playback position label doesn't get updated if the playhead is not visible. The label is updated in `_draw_indicator()` at the end of the function, but we return early if the calculated offset falls outside the valid range. This fix moves the label updating above this check, ensuring that the label always gets updated regardless of the visibility of the playhead.

Fixes godotengine#86550.
@alessandrofama alessandrofama requested a review from a team as a code owner January 5, 2024 11:45
@AThousandShips AThousandShips added this to the 4.3 milestone Jan 5, 2024
@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 5, 2024
@akien-mga akien-mga merged commit e417b7e into godotengine:master Jan 8, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@alessandrofama alessandrofama deleted the audio-import-playback-position branch January 8, 2024 11:45
@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audio Stream Importer playback position is not updated unless playhead is visible
3 participants