diff --git a/rott/dukemusc.c b/rott/dukemusc.c index 655efc0..1775806 100644 --- a/rott/dukemusc.c +++ b/rott/dukemusc.c @@ -169,6 +169,18 @@ int MUSIC_Init(int SoundCard, int Address) return(MUSIC_Error); } // if + // add soundfonts + const char *soundfonts = Mix_GetSoundFonts(); + if (soundfonts) + { + printf("Using soundfonts path string \"%s\"\n", soundfonts); + Mix_SetSoundFonts(soundfonts); + } + else + { + fprintf(stderr, "Couldn't find any soundfonts!\n"); + } + music_initialized = 1; return(MUSIC_Ok); } // MUSIC_Init