Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions emu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ option(SNDEMU_GA20_ALL "Sound Device Irem GA20: all cores" OFF)
option(SNDEMU_MIKEY_ALL "Sound Device Mikey: all cores" OFF)
option(SNDEMU_K007232_ALL "Sound Device K007232: all cores" OFF)
option(SNDEMU_K005289_ALL "Sound Device K005289: all cores" OFF)
option(SNDEMU_BSMT2000_ALL "Sound Device BSMT2000: all cores" OFF)
option(SNDEMU_MSM5205_ALL "Sound Device MSM5205: all cores" OFF)
option(SNDEMU_MSM5232_ALL "Sound Device MSM5232: all cores" OFF)

Expand Down Expand Up @@ -147,6 +148,7 @@ if(SNDEMU__ALL)
set(SNDEMU_K005289_ALL ON)
set(SNDEMU_MSM5205_ALL ON)
set(SNDEMU_MSM5232_ALL ON)
set(SNDEMU_BSMT2000_ALL ON)
endif()


Expand Down Expand Up @@ -634,6 +636,11 @@ if(SNDEMU_MSM5232_ALL)
set(EMU_FILES ${EMU_FILES} cores/msm5232.c)
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/msm5232.h)
endif()
if(SNDEMU_BSMT2000_ALL)
set(EMU_DEFS ${EMU_DEFS} " SNDDEV_BSMT2000")
set(EMU_FILES ${EMU_FILES} cores/bsmt2000.c)
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/bsmt2000.h)
endif()

add_library(${PROJECT_NAME} ${LIBRARY_TYPE} ${EMU_FILES})
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
Expand Down
1 change: 1 addition & 0 deletions emu/SoundDevs.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@
#define DEVID_K005289 0x2B
#define DEVID_MSM5205 0x2C // variants: MSM5205, MSM6585
#define DEVID_MSM5232 0x2D
#define DEVID_BSMT2000 0x2E
#endif // __SOUNDDEVS_H__
7 changes: 7 additions & 0 deletions emu/SoundEmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#define SNDDEV_K005289
#define SNDDEV_MSM5205
#define SNDDEV_MSM5232
#define SNDDEV_BSMT2000
#endif

#ifdef SNDDEV_SN76496
Expand Down Expand Up @@ -182,6 +183,9 @@
#ifdef SNDDEV_MSM5232
#include "cores/msm5232.h"
#endif
#ifdef SNDDEV_BSMT2000
#include "cores/bsmt2000.h"
#endif

const DEV_DECL* sndEmu_Devices[] = {
#ifdef SNDDEV_SN76496
Expand Down Expand Up @@ -321,6 +325,9 @@ const DEV_DECL* sndEmu_Devices[] = {
#endif
#ifdef SNDDEV_MSM5232
&sndDev_MSM5232,
#endif
#ifdef SNDDEV_BSMT2000
&sndDev_BSMT2000,
#endif
NULL // list end
};
Expand Down
Loading
Loading