Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.

Commit 31a0b19

Browse files
committed
attempt to retain channel mute status on file change
1 parent 0c0ad90 commit 31a0b19

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

BXPlayerGUI/Form1.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,16 @@ private void Bx_PlayStateChanged(object sender, PlayStateEvent e)
696696
SetButtonImage(playbut, DM.IsDarkMode ? ZefieLib.Imaging.InvertColors(Properties.Resources.icon_play) : Properties.Resources.icon_play);
697697
SetStatusLabelText(status, "Ready.");
698698
}
699+
700+
foreach (Control c in midichpnl.Controls)
701+
{
702+
if (c is CheckBox cb)
703+
{
704+
short midich = (short)Convert.ToInt16(cb.Name.Split('_')[1]);
705+
bool muted = !cb.Checked;
706+
bx.MuteChannel(midich, muted);
707+
}
708+
}
699709
}
700710

701711
private void Bx_FileChanged(object sender, FileChangeEvent e)

0 commit comments

Comments
 (0)