Skip to content

Commit 8fef945

Browse files
committed
Playback speed not being used fix
1 parent de02137 commit 8fef945

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/funkin/play/PlayState.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,9 @@ class PlayState extends MusicBeatSubState
915915
{
916916
Conductor.instance.formatOffset = 0.0;
917917
}
918-
919-
Conductor.instance.update(Conductor.instance.songPosition + elapsed * 1000, false); // Normal conductor update.
918+
// Pass the music time instead if the pitch is different, aka, the song is lower or faster
919+
Conductor.instance.update((FlxG.sound.music.pitch != 1) ? FlxG.sound.music.time + elapsed * 1000 : (Conductor.instance.songPosition + elapsed * 1000),
920+
false); // Normal conductor update.
920921
}
921922

922923
var androidPause:Bool = false;

0 commit comments

Comments
 (0)