Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
point snd_soundfont to a default soundfont path on non-Windows systems
Browse files Browse the repository at this point in the history
On non-Windows systems it is quite unlikely that the soundfont is
installed into the same path as the executable. On these systems,
point the snd_soundfont variable to the default soundfont path on
Debian, so that no further patching is required for this OS and its
derivatives.
  • Loading branch information
fabiangreffrath committed Jun 15, 2020
1 parent bd0f60a commit decb022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prboom2/src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,11 @@ default_t defaults[] =
def_int,ss_none}, // number of audio events simultaneously // killough
#ifdef _WIN32
{"snd_midiplayer",{NULL, &snd_midiplayer},{0,"fluidsynth"},UL,UL,def_str,ss_none},
{"snd_soundfont",{NULL, &snd_soundfont},{0,"TimGM6mb.sf2"},UL,UL,def_str,ss_none}, // soundfont name for synths that support it
#else
{"snd_midiplayer",{NULL, &snd_midiplayer},{0,"sdl"},UL,UL,def_str,ss_none},
{"snd_soundfont",{NULL, &snd_soundfont},{0,"/usr/share/sounds/sf3/default-GM.sf3"},UL,UL,def_str,ss_none}, // soundfont name for synths that support it
#endif
{"snd_soundfont",{NULL, &snd_soundfont},{0,"TimGM6mb.sf2"},UL,UL,def_str,ss_none}, // soundfont name for synths that support it
{"snd_mididev",{NULL, &snd_mididev},{0,""},UL,UL,def_str,ss_none}, // midi device to use for portmidiplayer

#ifdef _WIN32
Expand Down

0 comments on commit decb022

Please sign in to comment.