Skip to content

Commit

Permalink
Use Mix_GetSoundFonts();
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Jul 18, 2024
1 parent aba5817 commit 64514c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rott/dukemusc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64514c1

Please sign in to comment.