Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Stable versions
Changes by Alice Rowan
- Report pan value "---" for instruments/samples without
a default panning value (sub->pan < 0).
- Don't unmute muted IT channels unless explicitly unmuted by
the -S/--solo option.

4.2.0 (20230615):
Changes by Özkan Sezer:
Expand Down
10 changes: 9 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ int main(int argc, char **argv)
opt.dsp = XMP_DSP_LOWPASS;
opt.player_mode = XMP_MODE_AUTO;
opt.amplify = 1;
for (i = 0; i < XMP_MAX_CHANNELS; i++) {
opt.mute[i] = -1; /* Use module default mute/unmute state */
}

/* read configuration file */
if (!opt.norc) {
Expand Down Expand Up @@ -484,7 +487,12 @@ int main(int argc, char **argv)
/* Mute channels */

for (i = 0; i < XMP_MAX_CHANNELS; i++) {
xmp_channel_mute(xc, i, opt.mute[i]);
/* Only mute/unmute if an option has been
* provided explicitly (to avoid unmuting
* disabled channels in IT et al.) */
if (opt.mute[i] >= 0) {
xmp_channel_mute(xc, i, opt.mute[i]);
}
}

/* Set player flags */
Expand Down