From 5921819eb9cde1ede652fed83ce90332c334949a Mon Sep 17 00:00:00 2001 From: JOELwindows7 Date: Thu, 16 Nov 2023 12:35:15 +0700 Subject: [PATCH] pich ``` Warning : (WDeprecated) --no-traces has been deprecated, use -D no-traces instead source/ChartingState.hx:2725: characters 62-70 : openfl.media.SoundChannel has no field __source source/ChartingState.hx:2732: characters 54-62 : openfl.media.SoundChannel has no field __source source/FreeplayState.hx:2608: characters 32-40 : openfl.media.SoundChannel has no field __source /Users/runner/work/Kaded-fnf-mods/Kaded-fnf-mods/.haxelib/flixel-ui/2,5,0/flixel/addons/ui/FlxUICursor.hx:564: characters 9-11 : Warning : Potential typo detected (expected similar values are flixel.addons.ui.SortMethod.ID) source/PlayState.hx:12014: characters 32-40 : openfl.media.SoundChannel has no field __source source/PlayState.hx:12017: characters 22-30 : openfl.media.SoundChannel has no field __source source/PlayState.hx:12020: characters 23-31 : openfl.media.SoundChannel has no field __source source/experiments/AnChangeChannel.hx:110: characters 31-39 : openfl.media.SoundChannel has no field __source source/experiments/AnLoneBopeebo.hx:88: characters 32-40 : openfl.media.SoundChannel has no field __source Error: Process completed with exit code 1. ``` i dont get it --- source/FreeplayState.hx | 3 ++- source/PlayState.hx | 9 ++++++--- source/experiments/AnChangeChannel.hx | 3 ++- source/experiments/AnLoneBopeebo.hx | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) 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)