add audio resyncing
This commit is contained in:
parent
23137bf834
commit
8230ef5d93
2 changed files with 3 additions and 0 deletions
|
@ -220,6 +220,7 @@ func _physics_process(_delta: float) -> void:
|
|||
prev_frame_held[j] = false
|
||||
j+=1
|
||||
index += 1
|
||||
if (index % 60 == 0): index = int($AudioStreamPlayer.get_playback_position() * 60)
|
||||
if (index <= 0): _on_stop_button_pressed()
|
||||
update_time_label()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue