From b7a5fa063263b54eb77c16f900cee541852b4143 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Wed, 8 Jun 2016 14:11:13 -0300 Subject: [PATCH] Fix classic mixer selection Signed-off-by: Claudio Matsuoka --- src/commands.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/commands.c b/src/commands.c index b0524c2..684c1f8 100644 --- a/src/commands.c +++ b/src/commands.c @@ -185,10 +185,17 @@ void read_command(xmp_context handle, struct xmp_module_info *mi, struct control ctl->loop++; ctl->loop %= 3; break; - case 'x': + case 'x': { + int f = xmp_get_player(handle, XMP_PLAYER_FLAGS); ctl->classic = !ctl->classic; - xmp_set_player(handle, XMP_FLAGS_CLASSIC, ctl->classic); - break; + if (ctl->classic) { + xmp_set_player(handle, XMP_PLAYER_CFLAGS, + f | XMP_FLAGS_CLASSIC); + } else { + xmp_set_player(handle, XMP_PLAYER_CFLAGS, + f &= ~XMP_FLAGS_CLASSIC); + } + break; } case 'Z': ctl->cur_seq = 1; break;