mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-20 19:47:38 +00:00
Merge pull request #213 from FunkinCrew/bugfix/chart-editor-preview-inst
Chart Editor: Song Preview Bug Fix
This commit is contained in:
commit
6a58e38077
|
@ -4506,6 +4506,16 @@ class ChartEditorState extends HaxeUIState
|
|||
function resetConductorAfterTest(_:FlxSubState = null):Void
|
||||
{
|
||||
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