From 16914e76ac0cb7b83aeb521db83b0c821766c3b8 Mon Sep 17 00:00:00 2001 From: Alexander Babikov <2708460+lemondrops@users.noreply.github.com> Date: Mon, 25 Jul 2022 20:08:32 +0500 Subject: [PATCH] Add an option to control SBMIDI input receiving on SB Pro MCV --- src/sound/snd_sb.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/sound/snd_sb.c b/src/sound/snd_sb.c index 16fcfe9d3..cb34de52d 100644 --- a/src/sound/snd_sb.c +++ b/src/sound/snd_sb.c @@ -2749,6 +2749,17 @@ static const device_config_t sb_pro_config[] = { { .name = "", .description = "", .type = CONFIG_END } }; +static const device_config_t sb_pro_mcv_config[] = { + { + .name = "receive_input", + .description = "Receive input (SB MIDI)", + .type = CONFIG_BINARY, + .default_string = "", + .default_int = 1 + }, + { .name = "", .description = "", .type = CONFIG_END } +}; + static const device_config_t sb_16_config[] = { { .name = "base", @@ -3523,7 +3534,7 @@ const device_t sb_pro_mcv_device = { { .available = NULL }, .speed_changed = sb_speed_changed, .force_redraw = NULL, - .config = NULL + .config = sb_pro_mcv_config }; const device_t sb_pro_compat_device = {