Skip to content

Commit 475b227

Browse files
committed
Enable Windows sound backends in Fluidsynth.
1 parent 9d880a2 commit 475b227

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

releases.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@
11241124
"fluidsynth"
11251125
],
11261126
"versions": [
1127+
"2.3.3-4",
11271128
"2.3.3-3",
11281129
"2.3.3-2",
11291130
"2.3.3-1",

subprojects/packagefiles/fluidsynth/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ ext_deps = [m_dep, glib_dep, gthread_dep, openmp_dep]
173173
lib_args = []
174174
if host_machine.system() == 'windows'
175175
if is_shared_lib
176-
lib_args = ['-DFLUIDSYNTH_DLL_EXPORTS']
176+
lib_args += ['-DFLUIDSYNTH_DLL_EXPORTS']
177177
endif
178+
lib_args += ['-DWASAPI_SUPPORT=1', '-DWINMIDI_SUPPORT=1']
179+
ext_deps += [cc.find_library('winmm')]
178180
# Specific workaround on MSYS2 to obtain static dependencies of intl, such as iconv
179181
# This is required as of meson 0.59
180182
if get_option('try-static-deps') and host_is_msys2

subprojects/packagefiles/fluidsynth/src/meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ fluidsynth_sources = files(
5050
'utils/fluid_sys.c',
5151
)
5252

53+
if host_machine.system() == 'windows'
54+
fluidsynth_sources += files(
55+
'drivers/fluid_wasapi.c',
56+
'drivers/fluid_winmidi.c',
57+
)
58+
endif
59+
5360
make_tables_sources = files(
5461
'gentables/gen_conv.c',
5562
'gentables/gen_rvoice_dsp.c',

0 commit comments

Comments
 (0)