Skip to content

Commit 0860515

Browse files
authored
fix music muting (#3569)
1 parent 1ccc46b commit 0860515

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flixel/sound/FlxSound.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,13 @@ class FlxSound extends FlxBasic
728728
{
729729
_transform.volume = calcTransformVolume();
730730

731+
if (_channel != null)
732+
_channel.soundTransform = _transform;
733+
731734
if (_transform.volume > 0)
732735
{
733736
if (_channel != null)
734737
{
735-
_channel.soundTransform = _transform;
736-
737738
amplitudeLeft = _channel.leftPeak * volume;
738739
amplitudeRight = _channel.rightPeak * volume;
739740
amplitude = (amplitudeLeft + amplitudeRight) * 0.5;

0 commit comments

Comments
 (0)