zmusic/thirdparty/opnmidi/CMakeLists.txt
Wohlstand faa997b986 Updated libOPNMIDI to 1.5.1
Changelog:
 * Added an ability to disable the automatical arpeggio
 * Updated the GENS chip emulator from the 2.10 into GS/II (thanks to @freq-mod for the help)
 * Added an ability to set number of loops
 * Added an ability to disable/enable playing of selected MIDI channels
 * Fixed memory damages and crashes while playing XMI files
 * Added the chip channels allocation mode option
 * Fixed the playback of multi-song XMI files
 * Added an ability to switch the XMI song on the fly

And also:
 * Fixed the work on big endian processors
 * Fixed ARM64 build on some platforms
 * Improved support of the EA-MUS files (Thanks to [dashodanger](https://github.com/dashodanger))
 * Fixed crash on attempt to change the volume of a blank note
2023-01-02 08:11:31 +01:00

48 lines
1 KiB
CMake

make_release_only()
add_library(opn OBJECT)
target_sources(opn
PRIVATE
opnmidi_load.cpp
opnmidi_private.cpp
opnmidi.cpp
opnmidi_midiplay.cpp
opnmidi_opn2.cpp
chips/np2/fmgen_fmgen.cpp
chips/np2/fmgen_opna.cpp
chips/np2/fmgen_fmtimer.cpp
chips/np2/fmgen_file.cpp
chips/np2/fmgen_psg.cpp
chips/mame_opn2.cpp
chips/gens_opn2.cpp
chips/mame_opna.cpp
chips/np2_opna.cpp
chips/mamefm/ymdeltat.cpp
chips/mamefm/resampler.cpp
chips/mamefm/fm.cpp
chips/nuked_opn2.cpp
chips/gens/Ym2612.cpp
chips/gx_opn2.cpp
chips/pmdwin_opna.cpp
chips/nuked/ym3438.c
chips/gx/gx_ym2612.c
chips/pmdwin/opna.c
chips/pmdwin/psg.c
chips/pmdwin/rhythmdata.c
chips/mamefm/emu2149.c
chips/mame/mame_ym2612fm.c
wopn/wopn_file.c
)
target_compile_definitions(opn
PRIVATE
# we play with out own sequencer
OPNMIDI_DISABLE_MIDI_SEQUENCER
# Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback)
OPNMIDI_DISABLE_GX_EMULATOR
)
target_include_directories(opn PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
use_fast_math(opn)