From 0af726eb35faf5f87cea1d38838c9bab54d089f6 Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Sat, 31 Jan 2026 22:27:47 -0600 Subject: [PATCH] Sensation: Make Sensation onboard audio an internal device and give the machine the sound and gameport flags --- src/machine/m_at_socket1.c | 4 +++- src/machine/machine_table.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/machine/m_at_socket1.c b/src/machine/m_at_socket1.c index 933843e51..c4932399d 100644 --- a/src/machine/m_at_socket1.c +++ b/src/machine/m_at_socket1.c @@ -392,7 +392,6 @@ machine_at_sensation1_init(const machine_t *model) device_add(&vl82c113_device); device_add(&pssj_1e0_device); - device_add(&sensationaud_device); if (fdc_current[0] == FDC_INTERNAL) device_add(&fdc_at_nsc_dp8473_device); @@ -400,6 +399,9 @@ machine_at_sensation1_init(const machine_t *model) //if (gfxcard[0] == VID_INTERNAL) // device_add(machine_get_vid_device(machine)); + if (sound_card_current[0] == SOUND_INTERNAL) + machine_snd = device_add(machine_get_snd_device(machine)); + return ret; } diff --git a/src/machine/machine_table.c b/src/machine/machine_table.c index 7258a8296..335860616 100644 --- a/src/machine/machine_table.c +++ b/src/machine/machine_table.c @@ -7806,7 +7806,7 @@ const machine_t machines[] = { .max_multi = 0 }, .bus_flags = MACHINE_PS2, - .flags = MACHINE_IDE | MACHINE_APM, + .flags = MACHINE_IDE | MACHINE_SOUND | MACHINE_GAMEPORT | MACHINE_APM, .ram = { .min = 2048, .max = 65536, @@ -7825,7 +7825,7 @@ const machine_t machines[] = { .fdc_device = NULL, .sio_device = NULL, .vid_device = NULL, - .snd_device = NULL, + .snd_device = &sensationaud_device, .net_device = NULL }, /* Has a VLSI VL82C113A SCAMP Combination I/O which holds the KBC. */