Skip to content

Commit

Permalink
pich
Browse files Browse the repository at this point in the history
```
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
  • Loading branch information
JOELwindows7 committed Nov 16, 2023
1 parent 26edde4 commit 5921819
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 6 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion source/experiments/AnChangeChannel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion source/experiments/AnLoneBopeebo.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5921819

Please sign in to comment.