Skip to content

Commit

Permalink
Update FunkinSound.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Oct 30, 2024
1 parent bb65646 commit 714e8e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/funkin/audio/FunkinSound.hx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
if (_onVolumeChanged == null)
{
_onVolumeChanged = new FlxTypedSignal<Float->Void>();
FlxG.sound.volumeHandler = (volume:Float) -> _onVolumeChanged.dispatch(volume);
FlxG.sound.onVolumeChange = (volume:Float) -> _onVolumeChanged.dispatch(volume);
}
return _onVolumeChanged;
}
Expand Down Expand Up @@ -408,7 +408,8 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>

if (autoPlay) sound.play();
sound.volume = volume;
sound.group = FlxG.sound.defaultSoundGroup;
var myGroup:FlxSoundGroup = new FlxSoundGroup();
myGroup.add(FlxG.sound.defaultSoundGroup);
sound.persist = persist;

// Make sure to add the sound to the list.
Expand Down

0 comments on commit 714e8e9

Please sign in to comment.