mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Enable FluidSynth for Windows VS x86/x64 builds
This commit is contained in:
@@ -116,24 +116,23 @@ For building the source code in Visual Studio 2015 or 2017,
|
||||
you may change the platform toolset to v140 or v141 respectively.
|
||||
|
||||
Libraries such as SDL, freetype, libpdcurses, libpng and zlib are already included,
|
||||
but support for FluidSynth MIDI Synthesizer is not included or enabled by default
|
||||
for Visual Studio builds.
|
||||
and as of DOSBox-X 0.83.6 support for FluidSynth MIDI Synthesizer is included for x86
|
||||
and x64 builds by default.
|
||||
|
||||
You can enable FluidSynth support by setting up vcpkg to install the build dependency.
|
||||
vcpkg is a command-line package manager for C/C++ by Microsoft, and it is freely
|
||||
available from (with install instructions): https://github.com/microsoft/vcpkg
|
||||
You can maually enable FluidSynth support for other platforms by setting up vcpkg to
|
||||
install the build dependency. vcpkg is a command-line package manager for C/C++ by
|
||||
Microsoft, and it is freely available from (with install instructions):
|
||||
https://github.com/microsoft/vcpkg
|
||||
|
||||
Once vcpkg is installed and bootstrapped, open Command Prompt or PowerShell, and run:
|
||||
|
||||
.\vcpkg integrate install
|
||||
.\vcpkg install fluidsynth:x64-windows
|
||||
.\vcpkg install fluidsynth:arm64-windows
|
||||
|
||||
The above assumes Windows x64 build. For x86 build use "fluidsynth:x86-windows" instead of
|
||||
"fluidsynth:x64-windows". For ARM64 build please use "fluidsynth:arm64-windows" instead.
|
||||
The above will install FluidSynth for the Windows ARM64 builds. Then open the file
|
||||
./vs2015/config.h and change "#undef C_FLUIDSYNTH" to "#define C_FLUIDSYNTH 1" for it.
|
||||
|
||||
Then open ./vs2015/config.h and change "#undef C_FLUIDSYNTH" to "#define C_FLUIDSYNTH 1".
|
||||
|
||||
Build the source code. FluidSynth support should now be enabled for DOSBox-X.
|
||||
Build the source code. FluidSynth support should be enabled for the DOSBox-X build.
|
||||
Set "mididevice=fluidsynth" in the [midi] section of DOSBox-X's configuration file
|
||||
(dosbox-x.conf) along with required soundfont file (e.g. FluidR3_GM.sf2) to use it.
|
||||
|
||||
|
Reference in New Issue
Block a user