Skip to content

Commit 990a66d

Browse files
author
Lily
authored
abot fix
1 parent ba16f10 commit 990a66d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/stages/objects/ABotSpeaker.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ class ABotSpeaker extends FlxSpriteGroup
123123
@:privateAccess
124124
analyzer = new SpectralAnalyzer(snd._channel.__audioSource, 7, 0.1, 40);
125125

126-
#if desktop
127-
// On desktop it uses FFT stuff that isn't as optimized as the direct browser stuff we use on HTML5
126+
#if (desktop || mobile)
127+
// On native it uses FFT stuff that isn't as optimized as the direct browser stuff we use on HTML5
128128
// So we want to manually change it!
129129
analyzer.fftN = 256;
130130
#end
@@ -142,4 +142,4 @@ class ABotSpeaker extends FlxSpriteGroup
142142
if(!lookingAtRight) eyes.anim.play('lookright', true);
143143
lookingAtRight = true;
144144
}
145-
}
145+
}

0 commit comments

Comments
 (0)