From 931fae62c693886a21f771263ca1c5d59477b23a Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Fri, 29 Mar 2024 18:46:49 -0400 Subject: [PATCH] NCURSES: '3' Key Slot Preference Cycle; --- src/dsd_ncurses.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/dsd_ncurses.c b/src/dsd_ncurses.c index 73965dc..ec70eaa 100644 --- a/src/dsd_ncurses.c +++ b/src/dsd_ncurses.c @@ -3921,10 +3921,16 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state) } } - if (c == 51) //'3' key, toggle slot preference on 48k/1 + // if (c == 51) //'3' key, toggle slot preference on 48k/1 + // { + // if (opts->slot_preference == 1) opts->slot_preference = 0; + // else opts->slot_preference = 1; + // } + + if (c == 51) //'3' key, cycle slot preference { - if (opts->slot_preference == 1) opts->slot_preference = 0; - else opts->slot_preference = 1; + if (opts->slot_preference == 0 || opts->slot_preference == 1) opts->slot_preference++; + else opts->slot_preference = 0; } if (c == 43) //+ key, increment audio_gain