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 @@ -83,6 +83,7 @@ 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_MSM5205_ALL "Sound Device MSM5205: all cores" OFF)
option(SNDEMU_MSM5232_ALL "Sound Device MSM5232: all cores" OFF)

# console/computer presets
option(SNDEMU__PRESET_SMS "Sound Dev. Preset: Sega Master System/Game Gear" OFF)
Expand Down Expand Up @@ -145,6 +146,7 @@ if(SNDEMU__ALL)
set(SNDEMU_K007232_ALL ON)
set(SNDEMU_K005289_ALL ON)
set(SNDEMU_MSM5205_ALL ON)
set(SNDEMU_MSM5232_ALL ON)
endif()


Expand Down Expand Up @@ -627,6 +629,11 @@ if(SNDEMU_MSM5205_ALL)
set(EMU_FILES ${EMU_FILES} cores/msm5205.c)
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/msm5205.h)
endif()
if(SNDEMU_MSM5232_ALL)
set(EMU_DEFS ${EMU_DEFS} " SNDDEV_MSM5232")
set(EMU_FILES ${EMU_FILES} cores/msm5232.c)
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/msm5232.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 @@ -46,4 +46,5 @@
#define DEVID_K007232 0x2A
#define DEVID_K005289 0x2B
#define DEVID_MSM5205 0x2C // variants: MSM5205, MSM6585
#define DEVID_MSM5232 0x2D
#endif // __SOUNDDEVS_H__
7 changes: 7 additions & 0 deletions emu/SoundEmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#define SNDDEV_K007232
#define SNDDEV_K005289
#define SNDDEV_MSM5205
#define SNDDEV_MSM5232
#endif

#ifdef SNDDEV_SN76496
Expand Down Expand Up @@ -178,6 +179,9 @@
#ifdef SNDDEV_MSM5205
#include "cores/msm5205.h"
#endif
#ifdef SNDDEV_MSM5232
#include "cores/msm5232.h"
#endif

const DEV_DECL* sndEmu_Devices[] = {
#ifdef SNDDEV_SN76496
Expand Down Expand Up @@ -314,6 +318,9 @@ const DEV_DECL* sndEmu_Devices[] = {
#endif
#ifdef SNDDEV_MSM5205
&sndDev_MSM5205,
#endif
#ifdef SNDDEV_MSM5232
&sndDev_MSM5232,
#endif
NULL // list end
};
Expand Down
Loading
Loading