Skip to content

Commit d361f93

Browse files
authored
Initial BSMT2000 implementation for libvgm. (#140)
1 parent 460e894 commit d361f93

File tree

11 files changed

+682
-10
lines changed

11 files changed

+682
-10
lines changed

emu/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ option(SNDEMU_GA20_ALL "Sound Device Irem GA20: all cores" OFF)
8282
option(SNDEMU_MIKEY_ALL "Sound Device Mikey: all cores" OFF)
8383
option(SNDEMU_K007232_ALL "Sound Device K007232: all cores" OFF)
8484
option(SNDEMU_K005289_ALL "Sound Device K005289: all cores" OFF)
85+
option(SNDEMU_BSMT2000_ALL "Sound Device BSMT2000: all cores" OFF)
8586
option(SNDEMU_MSM5205_ALL "Sound Device MSM5205: all cores" OFF)
8687
option(SNDEMU_MSM5232_ALL "Sound Device MSM5232: all cores" OFF)
8788

@@ -147,6 +148,7 @@ if(SNDEMU__ALL)
147148
set(SNDEMU_K005289_ALL ON)
148149
set(SNDEMU_MSM5205_ALL ON)
149150
set(SNDEMU_MSM5232_ALL ON)
151+
set(SNDEMU_BSMT2000_ALL ON)
150152
endif()
151153

152154

@@ -634,6 +636,11 @@ if(SNDEMU_MSM5232_ALL)
634636
set(EMU_FILES ${EMU_FILES} cores/msm5232.c)
635637
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/msm5232.h)
636638
endif()
639+
if(SNDEMU_BSMT2000_ALL)
640+
set(EMU_DEFS ${EMU_DEFS} " SNDDEV_BSMT2000")
641+
set(EMU_FILES ${EMU_FILES} cores/bsmt2000.c)
642+
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/bsmt2000.h)
643+
endif()
637644

638645
add_library(${PROJECT_NAME} ${LIBRARY_TYPE} ${EMU_FILES})
639646
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)

emu/SoundDevs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@
4747
#define DEVID_K005289 0x2B
4848
#define DEVID_MSM5205 0x2C // variants: MSM5205, MSM6585
4949
#define DEVID_MSM5232 0x2D
50+
#define DEVID_BSMT2000 0x2E
5051
#endif // __SOUNDDEVS_H__

emu/SoundEmu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
#define SNDDEV_K005289
5555
#define SNDDEV_MSM5205
5656
#define SNDDEV_MSM5232
57+
#define SNDDEV_BSMT2000
5758
#endif
5859

5960
#ifdef SNDDEV_SN76496
@@ -182,6 +183,9 @@
182183
#ifdef SNDDEV_MSM5232
183184
#include "cores/msm5232.h"
184185
#endif
186+
#ifdef SNDDEV_BSMT2000
187+
#include "cores/bsmt2000.h"
188+
#endif
185189

186190
const DEV_DECL* sndEmu_Devices[] = {
187191
#ifdef SNDDEV_SN76496
@@ -321,6 +325,9 @@ const DEV_DECL* sndEmu_Devices[] = {
321325
#endif
322326
#ifdef SNDDEV_MSM5232
323327
&sndDev_MSM5232,
328+
#endif
329+
#ifdef SNDDEV_BSMT2000
330+
&sndDev_BSMT2000,
324331
#endif
325332
NULL // list end
326333
};

0 commit comments

Comments
 (0)