diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index 5d1d15ac09..961c7d6bea 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -2597,7 +2597,8 @@ class FreeplayState extends MusicBeatState implements IBGColorTweening implement #if web #if (lime >= "8.0.0" && lime_howlerjs) if (FlxG.sound.music != null) - FlxG.sound.music._channel.__source.__backend.setPitch(rate); + // FlxG.sound.music._channel.__source.__backend.setPitch(rate); + FlxG.sound.music._channel.__source.set_pitch(rate); #else if (FlxG.sound.music != null) FlxG.sound.music._channel.__source.__backend.parent.buffer.__srcHowl.rate(rate); diff --git a/source/PlayState.hx b/source/PlayState.hx index 878d0686f3..add95eeb05 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -12011,13 +12011,16 @@ class PlayState extends MusicBeatState implements IManipulateAudio #if (lime >= "8.0.0") if (FlxG.sound.music != null) if (FlxG.sound.music.playing) - FlxG.sound.music._channel.__source.__backend.setPitch(songMultiplier); + // FlxG.sound.music._channel.__source.__backend.setPitch(rate); + FlxG.sound.music._channel.__source.set_pitch(rate); if (vocals != null) if (vocals.playing) - vocals._channel.__source.__backend.setPitch(songMultiplier); + // vocals._channel.__source.__backend.setPitch(songMultiplier); + vocals._channel.__source.__backend.set_pitch(rate); if (vocals2 != null) if (vocals2.playing) - vocals2._channel.__source.__backend.setPitch(songMultiplier); + // vocals2._channel.__source.__backend.setPitch(songMultiplier); + vocals2._channel.__source.__backend.set_pitch(rate); #else if (FlxG.sound.music != null) if (FlxG.sound.music.playing) diff --git a/source/experiments/AnChangeChannel.hx b/source/experiments/AnChangeChannel.hx index edfce1984d..d65caabfb0 100644 --- a/source/experiments/AnChangeChannel.hx +++ b/source/experiments/AnChangeChannel.hx @@ -107,7 +107,8 @@ class AnChangeChannel extends AbstractTestMenu implements IManipulateAudio #end #elseif cpp #if (lime >= "8.0.0") - FlxG.sound.music._channel.__source.__backend.setPitch(rate); + // FlxG.sound.music._channel.__source.__backend.setPitch(rate); + FlxG.sound.music._channel.__source.set_pitch(rate); #else lime.media.openal.AL.sourcef(FlxG.sound.music._channel.__source.__backend.handle, lime.media.openal.AL.PITCH, rate); lime.media.openal.AL.sourcef(FlxG.sound.music._channel.__source.__backend.handle, lime.media.openal.AL.CHANNELS, channel); diff --git a/source/experiments/AnLoneBopeebo.hx b/source/experiments/AnLoneBopeebo.hx index 4fda203d49..7fcb4c4791 100644 --- a/source/experiments/AnLoneBopeebo.hx +++ b/source/experiments/AnLoneBopeebo.hx @@ -85,7 +85,8 @@ class AnLoneBopeebo extends AbstractTestMenu implements IManipulateAudio #if (lime >= "8.0.0") if (FlxG.sound.music != null) if (FlxG.sound.music.playing) - FlxG.sound.music._channel.__source.__backend.setPitch(rate); + // FlxG.sound.music._channel.__source.__backend.setPitch(rate); + FlxG.sound.music._channel.__source.set_pitch(rate); #else if (FlxG.sound.music != null) if (FlxG.sound.music.playing)