mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-07 20:18:21 +00:00
Fix a bug where completing a song in Preview would mute music.
This commit is contained in:
parent
01be0293e3
commit
c7f35bed5d
|
@ -4464,6 +4464,16 @@ class ChartEditorState extends HaxeUIState
|
||||||
function resetConductorAfterTest(_:FlxSubState = null):Void
|
function resetConductorAfterTest(_:FlxSubState = null):Void
|
||||||
{
|
{
|
||||||
moveSongToScrollPosition();
|
moveSongToScrollPosition();
|
||||||
|
|
||||||
|
var instVolumeSlider:Null<Slider> = findComponent('menubarItemVolumeInstrumental', Slider);
|
||||||
|
var vocalVolumeSlider:Null<Slider> = findComponent('menubarItemVolumeVocals', Slider);
|
||||||
|
|
||||||
|
// Reapply the volume.
|
||||||
|
var instTargetVolume:Float = instVolumeSlider?.value ?? 1.0;
|
||||||
|
var vocalTargetVolume:Float = vocalVolumeSlider?.value ?? 1.0;
|
||||||
|
|
||||||
|
if (audioInstTrack != null) audioInstTrack.volume = instTargetVolume;
|
||||||
|
if (audioVocalTrackGroup != null) audioVocalTrackGroup.volume = vocalTargetVolume;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue