NCURSES: '3' Key Slot Preference Cycle;

This commit is contained in:
lwvmobile 2024-03-29 18:46:49 -04:00
parent c1e657a5e3
commit 931fae62c6
1 changed files with 9 additions and 3 deletions

View File

@ -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