From 5d041d65d597df24e56606efb124d57b7c676238 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Mon, 30 Dec 2024 14:31:36 -0500 Subject: [PATCH] Add Vibra 16XV (Onboard) For future use --- src/include/86box/sound.h | 2 ++ src/sound/snd_sb.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/include/86box/sound.h b/src/include/86box/sound.h index b6c7dc148..2a6347b9c 100644 --- a/src/include/86box/sound.h +++ b/src/include/86box/sound.h @@ -109,6 +109,7 @@ extern void givealbuffer_wt(const void *buf); extern void givealbuffer_cd(const void *buf); #define sb_vibra16c_onboard_relocate_base sb_vibra16s_onboard_relocate_base +#define sb_vibra16xv_onboard_relocate_base sb_vibra16s_onboard_relocate_base extern void sb_vibra16s_onboard_relocate_base(uint16_t new_addr, void *priv); #ifdef EMU_DEVICE_H @@ -145,6 +146,7 @@ extern const device_t sb_pro_compat_device; extern const device_t sb_16_device; extern const device_t sb_vibra16s_onboard_device; extern const device_t sb_vibra16s_device; +extern const device_t sb_vibra16xv_onboard_device; extern const device_t sb_vibra16xv_device; extern const device_t sb_vibra16c_onboard_device; extern const device_t sb_vibra16c_device; diff --git a/src/sound/snd_sb.c b/src/sound/snd_sb.c index af93f5d3e..70cc8708b 100644 --- a/src/sound/snd_sb.c +++ b/src/sound/snd_sb.c @@ -5751,6 +5751,20 @@ const device_t sb_vibra16s_device = { .config = sb_16_config }; +const device_t sb_vibra16xv_onboard_device = { + .name = "Sound Blaster ViBRA 16XV (On-Board)", + .internal_name = "sb_vibra16xv_onboard", + .flags = DEVICE_ISA | DEVICE_AT, + .local = SB_VIBRA16XV, + .init = sb_vibra16_pnp_init, + .close = sb_close, + .reset = NULL, + .available = sb_vibra16xv_available, + .speed_changed = sb_speed_changed, + .force_redraw = NULL, + .config = sb_16_pnp_config +}; + const device_t sb_vibra16xv_device = { .name = "Sound Blaster ViBRA 16XV", .internal_name = "sb_vibra16xv",