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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
demofiles/
.vscode/

#################
## Visual Studio
Expand Down
13 changes: 10 additions & 3 deletions emu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ 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)
option(SNDEMU_BSMT2000_ALL "Sound Device BSMT2000: all cores" OFF)
option(SNDEMU_ICS2115_ALL "Sound Device ICS2115: all cores" OFF)

# console/computer presets
option(SNDEMU__PRESET_SMS "Sound Dev. Preset: Sega Master System/Game Gear" OFF)
Expand Down Expand Up @@ -147,8 +148,9 @@ if(SNDEMU__ALL)
set(SNDEMU_K007232_ALL ON)
set(SNDEMU_K005289_ALL ON)
set(SNDEMU_MSM5205_ALL ON)
set(SNDEMU_MSM5232_ALL ON)
set(SNDEMU_BSMT2000_ALL ON)
set(SNDEMU_MSM5232_ALL ON)
set(SNDEMU_BSMT2000_ALL ON)
set(SNDEMU_ICS2115_ALL ON)
endif()


Expand Down Expand Up @@ -641,6 +643,11 @@ if(SNDEMU_BSMT2000_ALL)
set(EMU_FILES ${EMU_FILES} cores/bsmt2000.c)
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/bsmt2000.h)
endif()
if(SNDEMU_ICS2115_ALL)
set(EMU_DEFS ${EMU_DEFS} " SNDDEV_ICS2115")
set(EMU_FILES ${EMU_FILES} cores/ics2115.c)
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/ics2115.h)
endif()

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

#ifdef SNDDEV_SN76496
Expand Down Expand Up @@ -186,6 +187,9 @@
#ifdef SNDDEV_BSMT2000
#include "cores/bsmt2000.h"
#endif
#ifdef SNDDEV_ICS2115
#include "cores/ics2115.h"
#endif

const DEV_DECL* sndEmu_Devices[] = {
#ifdef SNDDEV_SN76496
Expand Down Expand Up @@ -328,6 +332,9 @@ const DEV_DECL* sndEmu_Devices[] = {
#endif
#ifdef SNDDEV_BSMT2000
&sndDev_BSMT2000,
#endif
#ifdef SNDDEV_ICS2115
&sndDev_ICS2115,
#endif
NULL // list end
};
Expand Down
Loading
Loading