Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed Apr 10, 2024
1 parent 1ca2caf commit 5eb616a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/game/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2597,10 +2597,12 @@ class PlayState extends MusicBeatState
previousFrameTime = FlxG.game.ticks;
lastReportedPlayheadPosition = 0;

FlxG.sound.playMusic(backend.utils.Paths.inst(PlayState.SONG.song), 1, false);
FlxG.sound.music.pitch = playbackRate;
@:privateAccess
FlxG.sound.playMusic(inst._sound, 1, false);
#if FLX_PITCH FlxG.sound.music.pitch = playbackRate; #end
FlxG.sound.music.onComplete = finishSong.bind();
vocals.play();
vocals.play();

if(startOnTime > 0)
{
Expand Down

0 comments on commit 5eb616a

Please sign in to comment.