From 02b77df0396a9f50099766fed3a924b8d98ca8fb Mon Sep 17 00:00:00 2001 From: Weetbix Date: Sun, 31 Jul 2022 19:35:13 +0200 Subject: [PATCH] Fix syntax errors in Sync the gameplay with audio and music (#6016) --- tutorials/audio/sync_with_audio.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/audio/sync_with_audio.rst b/tutorials/audio/sync_with_audio.rst index d6ab1c59e..8931b62a7 100644 --- a/tutorials/audio/sync_with_audio.rst +++ b/tutorials/audio/sync_with_audio.rst @@ -41,7 +41,7 @@ Add these two and it's possible to guess almost exactly when sound or music will var time_delay - func _ready() + func _ready(): time_begin = OS.get_ticks_usec() time_delay = AudioServer.get_time_to_next_mix() + AudioServer.get_output_latency() $Player.play() @@ -119,7 +119,7 @@ Here is the same code as before using this approach: .. code-tab:: gdscript GDScript - func _ready() + func _ready(): $Player.play()