From 84886b341fd86fa83f7a65478a4eacd2df50bc0a Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Sun, 2 Sep 2012 11:20:26 -0300 Subject: [PATCH] Invert logic in channel mute query Signed-off-by: Claudio Matsuoka --- src/commands.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands.c b/src/commands.c index 7aee0f4..bf2ea31 100644 --- a/src/commands.c +++ b/src/commands.c @@ -159,10 +159,11 @@ void read_command(xmp_context handle, struct control *ctl) case '7': case '8': case '9': - xmp_channel_mute(handle, cmd - '1', -1); + /* toggle mute */ + xmp_channel_mute(handle, cmd - '1', 2); break; case '0': - xmp_channel_mute(handle, 9, -1); + xmp_channel_mute(handle, 9, 2); break; case '!': { int i;