src/sound
This commit is contained in:
@@ -541,9 +541,7 @@ static const device_config_t fluidsynth_config[] = {
|
||||
},
|
||||
.default_int = 2
|
||||
},
|
||||
{
|
||||
.type = -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -368,9 +368,7 @@ static const device_config_t mt32_config[] = {
|
||||
.type = CONFIG_BINARY,
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.type = -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -234,57 +234,73 @@ rtmidi_in_get_dev_name(int num, char *s)
|
||||
|
||||
static const device_config_t system_midi_config[] = {
|
||||
{
|
||||
"midi", "MIDI out device", CONFIG_MIDI_OUT, "", 0
|
||||
.name = "midi",
|
||||
.description = "MIDI out device",
|
||||
.type = CONFIG_MIDI_OUT,
|
||||
.default_string = "",
|
||||
.default_int = 0
|
||||
},
|
||||
{
|
||||
"", "", -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
};
|
||||
|
||||
static const device_config_t midi_input_config[] = {
|
||||
{
|
||||
"midi_input", "MIDI in device", CONFIG_MIDI_IN, "", 0
|
||||
.name = "midi_input",
|
||||
.description = "MIDI in device",
|
||||
.type = CONFIG_MIDI_IN,
|
||||
.default_string = "",
|
||||
.default_int = 0
|
||||
},
|
||||
{
|
||||
"realtime", "MIDI Real time", CONFIG_BINARY, "", 0
|
||||
.name = "realtime",
|
||||
.description = "MIDI Real time",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 0
|
||||
},
|
||||
{
|
||||
"thruchan", "MIDI Thru", CONFIG_BINARY, "", 1
|
||||
.name = "thruchan",
|
||||
.description = "MIDI Thru",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
"clockout", "MIDI Clockout", CONFIG_BINARY, "", 1
|
||||
.name = "clockout",
|
||||
.description = "MIDI Clockout",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
"", "", -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
};
|
||||
|
||||
const device_t rtmidi_output_device = {
|
||||
SYSTEM_MIDI_NAME,
|
||||
SYSTEM_MIDI_INTERNAL_NAME,
|
||||
0, 0,
|
||||
rtmidi_output_init,
|
||||
rtmidi_output_close,
|
||||
NULL,
|
||||
{ rtmidi_out_get_num_devs },
|
||||
NULL,
|
||||
NULL,
|
||||
system_midi_config
|
||||
.name = SYSTEM_MIDI_NAME,
|
||||
.internal_name = SYSTEM_MIDI_INTERNAL_NAME,
|
||||
.flags = 0,
|
||||
.local = 0,
|
||||
.init = rtmidi_output_init,
|
||||
.close = rtmidi_output_close,
|
||||
.reset = NULL,
|
||||
{ .available = rtmidi_out_get_num_devs },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = system_midi_config
|
||||
};
|
||||
|
||||
|
||||
const device_t rtmidi_input_device =
|
||||
{
|
||||
MIDI_INPUT_NAME,
|
||||
MIDI_INPUT_INTERNAL_NAME,
|
||||
0, 0,
|
||||
rtmidi_input_init,
|
||||
rtmidi_input_close,
|
||||
NULL,
|
||||
{ rtmidi_in_get_num_devs },
|
||||
NULL,
|
||||
NULL,
|
||||
midi_input_config
|
||||
const device_t rtmidi_input_device = {
|
||||
.name = MIDI_INPUT_NAME,
|
||||
.internal_name = MIDI_INPUT_INTERNAL_NAME,
|
||||
.flags = 0,
|
||||
.local = 0,
|
||||
.init = rtmidi_input_init,
|
||||
.close = rtmidi_input_close,
|
||||
.reset = NULL,
|
||||
{ .available = rtmidi_in_get_num_devs },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = midi_input_config
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -982,10 +982,28 @@ adgold_close(void *p)
|
||||
|
||||
static const device_config_t adgold_config[] = {
|
||||
// clang-format off
|
||||
{ "gameport", "Enable Game port", CONFIG_BINARY, "", 1 },
|
||||
{ "surround", "Surround module", CONFIG_BINARY, "", 1 },
|
||||
{ "receive_input", "Receive input (MIDI)", CONFIG_BINARY, "", 1 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "gameport",
|
||||
.description = "Enable Game port",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "surround",
|
||||
.description = "Surround module",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (MIDI)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -2055,46 +2055,54 @@ es1371_speed_changed(void *p)
|
||||
static const device_config_t es1371_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
.name = "codec",
|
||||
.description = "CODEC",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection = {
|
||||
{
|
||||
.description = "Asahi Kasei AK4540",
|
||||
.value = AC97_CODEC_AK4540
|
||||
}, {
|
||||
.description = "Crystal CS4297",
|
||||
.value = AC97_CODEC_CS4297
|
||||
}, {
|
||||
.description = "Crystal CS4297A",
|
||||
.value = AC97_CODEC_CS4297A
|
||||
}, {
|
||||
.description = "SigmaTel STAC9708",
|
||||
.value = AC97_CODEC_STAC9708
|
||||
}, {
|
||||
.description = "SigmaTel STAC9721",
|
||||
.value = AC97_CODEC_STAC9721
|
||||
}
|
||||
},
|
||||
.default_int = AC97_CODEC_CS4297A
|
||||
.name = "codec",
|
||||
.description = "CODEC",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection = {
|
||||
{
|
||||
.description = "Asahi Kasei AK4540",
|
||||
.value = AC97_CODEC_AK4540
|
||||
},
|
||||
{
|
||||
.description = "Crystal CS4297",
|
||||
.value = AC97_CODEC_CS4297
|
||||
},
|
||||
{
|
||||
.description = "Crystal CS4297A",
|
||||
.value = AC97_CODEC_CS4297A
|
||||
},
|
||||
{
|
||||
.description = "SigmaTel STAC9708",
|
||||
.value = AC97_CODEC_STAC9708
|
||||
},
|
||||
{
|
||||
.description = "SigmaTel STAC9721",
|
||||
.value = AC97_CODEC_STAC9721
|
||||
}
|
||||
},
|
||||
.default_int = AC97_CODEC_CS4297A
|
||||
},
|
||||
{
|
||||
"receive_input", "Receive input (MIDI)", CONFIG_BINARY, "", 1
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (MIDI)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
"", "", -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
static const device_config_t es1371_onboard_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
"receive_input", "Receive input (MIDI)", CONFIG_BINARY, "", 1
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (MIDI)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
"", "", -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -1251,12 +1251,29 @@ static const device_config_t azt1605_config[] = {
|
||||
.default_int = 0
|
||||
},
|
||||
{
|
||||
"addr", "SB Address", CONFIG_HEX16, "", 0, "", { 0 },
|
||||
{
|
||||
{ "0x220", 0x220 },
|
||||
{ "0x240", 0x240 },
|
||||
{ "Use EEPROM setting", 0 },
|
||||
{ "" }
|
||||
.name = "addr",
|
||||
.description = "SB Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x220",
|
||||
.value = 0x220
|
||||
},
|
||||
{
|
||||
.description = "0x240",
|
||||
.value = 0x240
|
||||
},
|
||||
{
|
||||
.description = "Use EEPROM setting",
|
||||
.value = 0
|
||||
},
|
||||
{
|
||||
.description = ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1328,10 +1345,28 @@ static const device_config_t azt1605_config[] = {
|
||||
},
|
||||
.default_int = 0
|
||||
},
|
||||
{ "opl", "Enable OPL", CONFIG_BINARY, "", 1 },
|
||||
{ "receive_input", "Receive input (SB MIDI)", CONFIG_BINARY, "", 1 },
|
||||
{ "receive_input401", "Receive input (MPU-401)", CONFIG_BINARY, "", 0 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "opl",
|
||||
.description = "Enable OPL",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (SB MIDI)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "receive_input401",
|
||||
.description = "Receive input (MPU-401)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 0
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
@@ -1341,8 +1376,7 @@ static const device_config_t azt2316a_config[] = {
|
||||
.name = "codec",
|
||||
.description = "CODEC",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection =
|
||||
{
|
||||
.selection = {
|
||||
{
|
||||
.description = "CS4248",
|
||||
.value = AD1848_TYPE_CS4248
|
||||
@@ -1361,20 +1395,36 @@ static const device_config_t azt2316a_config[] = {
|
||||
.default_int = 0
|
||||
},
|
||||
{
|
||||
"addr", "SB Address", CONFIG_HEX16, "", 0, "", { 0 },
|
||||
{
|
||||
{ "0x220", 0x220 },
|
||||
{ "0x240", 0x240 },
|
||||
{ "Use EEPROM setting", 0 },
|
||||
{ "" }
|
||||
.name = "addr",
|
||||
.description = "SB Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x220",
|
||||
.value = 0x220
|
||||
},
|
||||
{
|
||||
.description = "0x240",
|
||||
.value = 0x240
|
||||
},
|
||||
{
|
||||
.description = "Use EEPROM setting",
|
||||
.value = 0
|
||||
},
|
||||
{
|
||||
.description = ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
.name = "wss_irq",
|
||||
.description = "WSS IRQ",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection =
|
||||
{
|
||||
.selection = {
|
||||
{
|
||||
.description = "IRQ 11",
|
||||
.value = 11
|
||||
@@ -1397,8 +1447,7 @@ static const device_config_t azt2316a_config[] = {
|
||||
.name = "wss_dma",
|
||||
.description = "WSS DMA",
|
||||
.type = CONFIG_SELECTION,
|
||||
.selection =
|
||||
{
|
||||
.selection = {
|
||||
{
|
||||
.description = "DMA 0",
|
||||
.value = 0
|
||||
@@ -1417,10 +1466,28 @@ static const device_config_t azt2316a_config[] = {
|
||||
},
|
||||
.default_int = 0
|
||||
},
|
||||
{ "opl", "Enable OPL", CONFIG_BINARY, "", 1 },
|
||||
{ "receive_input", "Receive input (SB MIDI)", CONFIG_BINARY, "", 1 },
|
||||
{ "receive_input401", "Receive input (MPU-401)", CONFIG_BINARY, "", 0 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "opl",
|
||||
.description = "Enable OPL",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (SB MIDI)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "receive_input401",
|
||||
.description = "Receive input (MPU-401)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 0
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -1446,16 +1446,34 @@ cmi8x38_close(void *priv)
|
||||
|
||||
static const device_config_t cmi8x38_config[] = {
|
||||
// clang-format off
|
||||
{ "receive_input", "Receive input (MPU-401)", CONFIG_BINARY, "", 1 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (MPU-401)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
static const device_config_t cmi8738_config[] = {
|
||||
// clang-format off
|
||||
{ "six_channel", "6CH variant (6-channel)", CONFIG_BINARY, "", 1 },
|
||||
{ "receive_input", "Receive input (MPU-401)", CONFIG_BINARY, "", 1 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "six_channel",
|
||||
.description = "6CH variant (6-channel)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (MPU-401)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -189,20 +189,44 @@ cms_close(void *p)
|
||||
static const device_config_t cms_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
"base", "Address", CONFIG_HEX16, "", 0x220, "", { 0 },
|
||||
{
|
||||
{ "0x210", 0x210 },
|
||||
{ "0x220", 0x220 },
|
||||
{ "0x230", 0x230 },
|
||||
{ "0x240", 0x240 },
|
||||
{ "0x250", 0x250 },
|
||||
{ "0x260", 0x260 },
|
||||
{ "" }
|
||||
.name = "base",
|
||||
.description = "Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x220,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x210",
|
||||
.value = 0x210
|
||||
},
|
||||
{
|
||||
.description = "0x220",
|
||||
.value = 0x220
|
||||
},
|
||||
{
|
||||
.description = "0x230",
|
||||
.value = 0x230
|
||||
},
|
||||
{
|
||||
.description = "0x240",
|
||||
.value = 0x240
|
||||
},
|
||||
{
|
||||
.description = "0x250",
|
||||
.value = 0x250
|
||||
},
|
||||
{
|
||||
.description = "0x260",
|
||||
.value = 0x260
|
||||
},
|
||||
{
|
||||
.description = ""
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"", "", -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -1204,37 +1204,94 @@ gus_speed_changed(void *p)
|
||||
static const device_config_t gus_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
"type", "GUS type", CONFIG_SELECTION, "", 0, "", { 0 },
|
||||
{
|
||||
{ "Classic", GUS_CLASSIC },
|
||||
.name = "type",
|
||||
.description = "GUS type",
|
||||
.type = CONFIG_SELECTION,
|
||||
.default_string = "",
|
||||
.default_int = 0,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "Classic",
|
||||
.value = GUS_CLASSIC
|
||||
},
|
||||
#if defined(DEV_BRANCH) && defined(USE_GUSMAX)
|
||||
{ "MAX", GUS_MAX },
|
||||
{
|
||||
.description = "MAX",
|
||||
.value = GUS_MAX
|
||||
},
|
||||
#endif
|
||||
{ NULL }
|
||||
{ NULL }
|
||||
},
|
||||
},
|
||||
{
|
||||
"base", "Address", CONFIG_HEX16, "", 0x220, "", { 0 },
|
||||
{
|
||||
{ "210H", 0x210 },
|
||||
{ "220H", 0x220 },
|
||||
{ "230H", 0x230 },
|
||||
{ "240H", 0x240 },
|
||||
{ "250H", 0x250 },
|
||||
{ "260H", 0x260 },
|
||||
.name = "base",
|
||||
.description = "Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x220,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "210H",
|
||||
.value = 0x210
|
||||
},
|
||||
{
|
||||
.description = "220H",
|
||||
.value = 0x220
|
||||
},
|
||||
{
|
||||
.description = "230H",
|
||||
.value = 0x230
|
||||
},
|
||||
{
|
||||
.description = "240H",
|
||||
.value = 0x240
|
||||
},
|
||||
{
|
||||
.description = "250H",
|
||||
.value = 0x250
|
||||
},
|
||||
{
|
||||
.description = "260H",
|
||||
.value = 0x260
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"gus_ram", "Onboard RAM", CONFIG_SELECTION, "", 0, "", { 0 },
|
||||
{
|
||||
{ "256 KB", 0 },
|
||||
{ "512 KB", 1 },
|
||||
{ "1 MB", 2 },
|
||||
{ NULL }
|
||||
.name = "gus_ram",
|
||||
"Onboard RAM",
|
||||
.type = CONFIG_SELECTION,
|
||||
.default_string = "",
|
||||
.default_int = 0,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "256 KB",
|
||||
.value = 0
|
||||
},
|
||||
{
|
||||
.description = "512 KB",
|
||||
.value = 1
|
||||
},
|
||||
{
|
||||
.description = "1 MB",
|
||||
.value = 2
|
||||
},
|
||||
{ NULL }
|
||||
}
|
||||
},
|
||||
{ "receive_input", "Receive input (SB MIDI)", CONFIG_BINARY, "", 1 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "receive_input",
|
||||
.description = "Receive input (SB MIDI)",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format off
|
||||
};
|
||||
|
||||
|
@@ -1806,30 +1806,87 @@ mpu401_standalone_close(void *priv)
|
||||
static const device_config_t mpu401_standalone_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
"base", "MPU-401 Address", CONFIG_HEX16, "", 0x330, "", { 0 },
|
||||
{
|
||||
{ "0x220", 0x220 },
|
||||
{ "0x230", 0x230 },
|
||||
{ "0x240", 0x240 },
|
||||
{ "0x250", 0x250 },
|
||||
{ "0x300", 0x300 },
|
||||
{ "0x320", 0x320 },
|
||||
{ "0x330", 0x330 },
|
||||
{ "0x340", 0x340 },
|
||||
{ "0x350", 0x350 },
|
||||
{ "" }
|
||||
.name = "base",
|
||||
.description = "MPU-401 Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x330,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x220",
|
||||
.value = 0x220
|
||||
},
|
||||
{
|
||||
.description = "0x230",
|
||||
.value = 0x230
|
||||
},
|
||||
{
|
||||
.description = "0x240",
|
||||
.value = 0x240
|
||||
},
|
||||
{
|
||||
.description = "0x250",
|
||||
.value = 0x250
|
||||
},
|
||||
{
|
||||
.description = "0x300",
|
||||
.value = 0x300
|
||||
},
|
||||
{
|
||||
.description = "0x320",
|
||||
.value = 0x320
|
||||
},
|
||||
{
|
||||
.description = "0x330",
|
||||
.value = 0x330
|
||||
},
|
||||
{
|
||||
.description = "0x340",
|
||||
.value = 0x340
|
||||
},
|
||||
{
|
||||
.description = "0x350",
|
||||
.value = 0x350
|
||||
},
|
||||
{ .description = "" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"irq", "MPU-401 IRQ", CONFIG_SELECTION, "", 2, "", { 0 },
|
||||
{
|
||||
{ "IRQ 2", 2 },
|
||||
{ "IRQ 3", 3 },
|
||||
{ "IRQ 4", 4 },
|
||||
{ "IRQ 5", 5 },
|
||||
{ "IRQ 6", 6 },
|
||||
{ "IRQ 7", 7 },
|
||||
{ "" }
|
||||
.name = "irq",
|
||||
.description = "MPU-401 IRQ",
|
||||
.type = CONFIG_SELECTION,
|
||||
.default_string = "",
|
||||
.default_int = 2,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "IRQ 2",
|
||||
.value = 2
|
||||
},
|
||||
{
|
||||
.description = "IRQ 3",
|
||||
.value = 3
|
||||
},
|
||||
{
|
||||
.description = "IRQ 4",
|
||||
.value = 4
|
||||
},
|
||||
{
|
||||
.description = "IRQ 5",
|
||||
.value = 5
|
||||
},
|
||||
{
|
||||
.description = "IRQ 6",
|
||||
.value = 6
|
||||
},
|
||||
{
|
||||
.description = "IRQ 7",
|
||||
.value = 7
|
||||
},
|
||||
{ .description = "" }
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1838,7 +1895,7 @@ static const device_config_t mpu401_standalone_config[] = {
|
||||
.type = CONFIG_BINARY,
|
||||
.default_int = 1
|
||||
},
|
||||
{ "", "", -1 }
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
@@ -1850,9 +1907,7 @@ static const device_config_t mpu401_standalone_mca_config[] = {
|
||||
.type = CONFIG_BINARY,
|
||||
.default_int = 1
|
||||
},
|
||||
{
|
||||
"", "", -1
|
||||
}
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
@@ -239,15 +239,30 @@ pssj_close(void *p)
|
||||
static const device_config_t pssj_isa_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
"base", "Address", CONFIG_HEX16, "", 0x2C0, "", { 0 },
|
||||
{
|
||||
{ "0x0C0", 0x0C0 },
|
||||
{ "0x1E0", 0x1E0 },
|
||||
{ "0x2C0", 0x2C0 },
|
||||
{ "" }
|
||||
.name = "base",
|
||||
.description = "Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x2C0,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x0C0",
|
||||
.value = 0x0C0
|
||||
},
|
||||
{
|
||||
.description = "0x1E0",
|
||||
.value = 0x1E0
|
||||
},
|
||||
{
|
||||
.description = "0x2C0",
|
||||
.value = 0x2C0
|
||||
},
|
||||
{ .description = "" }
|
||||
}
|
||||
},
|
||||
{ "", "", -1 }
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
#endif
|
||||
@@ -277,7 +292,7 @@ const device_t pssj_1e0_device = {
|
||||
{ .available = NULL },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = NULL
|
||||
.config = NULL
|
||||
};
|
||||
|
||||
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
|
||||
|
1340
src/sound/snd_sb.c
1340
src/sound/snd_sb.c
File diff suppressed because it is too large
Load Diff
@@ -247,15 +247,30 @@ sn76489_device_close(void *p)
|
||||
static const device_config_t tndy_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
"base", "Address", CONFIG_HEX16, "", 0x0C0, "", { 0 },
|
||||
{
|
||||
{ "0x0C0", 0x0C0 },
|
||||
{ "0x1E0", 0x1E0 },
|
||||
{ "0x2C0", 0x2C0 },
|
||||
{ "" }
|
||||
.name = "base",
|
||||
.description = "Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x0C0,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x0C0",
|
||||
.value = 0x0C0
|
||||
},
|
||||
{
|
||||
.description = "0x1E0",
|
||||
.value = 0x1E0
|
||||
},
|
||||
{
|
||||
.description = "0x2C0",
|
||||
.value = 0x2C0
|
||||
},
|
||||
{ .description = "" }
|
||||
}
|
||||
},
|
||||
{ "", "", -1 }
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
#endif
|
||||
|
@@ -92,13 +92,32 @@ ssi2001_close(void *p)
|
||||
|
||||
static const device_config_t ssi2001_config[] = {
|
||||
// clang-format off
|
||||
{ "base", "Address", CONFIG_HEX16, "", 0x280, "", { 0 },
|
||||
{
|
||||
{ "0x280", 0x280 },
|
||||
{ "0x2A0", 0x2A0 },
|
||||
{ "0x2C0", 0x2C0 },
|
||||
{ "0x2E0", 0x2E0 },
|
||||
{ "" }
|
||||
{
|
||||
.name = "base",
|
||||
.description = "Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x280,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x280",
|
||||
.value = 0x280
|
||||
},
|
||||
{
|
||||
.description = "0x2A0",
|
||||
.value = 0x2A0
|
||||
},
|
||||
{
|
||||
.description = "0x2C0",
|
||||
.value = 0x2C0
|
||||
},
|
||||
{
|
||||
.description = "0x2E0",
|
||||
.value = 0x2E0
|
||||
},
|
||||
{ .description = "" }
|
||||
}
|
||||
},
|
||||
{ "gameport", "Enable Game port", CONFIG_BINARY, "", 1 },
|
||||
|
@@ -228,17 +228,42 @@ wss_speed_changed(void *priv)
|
||||
|
||||
static const device_config_t wss_config[] = {
|
||||
// clang-format off
|
||||
{ "base", "Address", CONFIG_HEX16, "", 0x530, "", { 0 },
|
||||
{
|
||||
{ "0x530", 0x530 },
|
||||
{ "0x604", 0x604 },
|
||||
{ "0xe80", 0xe80 },
|
||||
{ "0xf40", 0xf40 },
|
||||
{ "" }
|
||||
{
|
||||
.name = "base",
|
||||
.description = "Address",
|
||||
.type = CONFIG_HEX16,
|
||||
.default_string = "",
|
||||
.default_int = 0x530,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{
|
||||
.description = "0x530",
|
||||
.value = 0x530
|
||||
},
|
||||
{
|
||||
.description = "0x604",
|
||||
.value = 0x604
|
||||
},
|
||||
{
|
||||
.description = "0xe80",
|
||||
.value = 0xe80
|
||||
},
|
||||
{
|
||||
.description = "0xf40",
|
||||
.value = 0xf40
|
||||
},
|
||||
{ .description = "" }
|
||||
}
|
||||
},
|
||||
{ "opl", "Enable OPL", CONFIG_BINARY, "", 1 },
|
||||
{ "", "", -1 }
|
||||
{
|
||||
.name = "opl",
|
||||
.description = "Enable OPL",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = "",
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user