Skip to content

Commit

Permalink
probably fix the vocals freezing at low playback rates
Browse files Browse the repository at this point in the history
closes #838
  • Loading branch information
JordanSantiagoYT committed Jan 7, 2025
1 parent fbe4490 commit a441402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class PlayState extends MusicBeatState
inline function set_cpuControlled(value:Bool){
cpuControlled = value;
if (botplayTxt != null && !ClientPrefs.showcaseMode) // this assures it'll always show up
botplayTxt.visible = (!ClientPrefs.hideHud) ? cpuControlled : false;
botplayTxt.visible = (!ClientPrefs.hideHud && ClientPrefs.botTxtStyle != 'Hide') ? cpuControlled : false;

return cpuControlled;
}
Expand Down Expand Up @@ -6160,7 +6160,7 @@ class PlayState extends MusicBeatState
if (!ffmpegMode && playbackRate < 256) //much better resync code, doesn't just resync every step!!
{
var timeSub:Float = Conductor.songPosition - Conductor.offset;
var syncTime:Float = 20 * playbackRate;
var syncTime:Float = 20 * Math.max(playbackRate, 1);
if (Math.abs(FlxG.sound.music.time - timeSub) > syncTime ||
(vocals.length > 0 && vocals.time < vocals.length && Math.abs(vocals.time - timeSub) > syncTime) ||
(opponentVocals.length > 0 && opponentVocals.time < opponentVocals.length && Math.abs(opponentVocals.time - timeSub) > syncTime))
Expand Down

0 comments on commit a441402

Please sign in to comment.