You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 2.0.0 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2015-07-10 18:16:48 +0000, Fabian Greffrath wrote:
Created attachment 2217
no sf2 sound fonts loaded by default
Hi there,
it is possible for quite some time to render music with fluidsynth using sf2 soundfonts, and actually, this should always be preferred to rendering with timidity and freepats. However, for this to work you have to either set the actual path to the sf2 soundfont file with Mix_SetSoundFonts() in-game or specify some paths in the SDL_SOUNDFONTS environment variable and additionally enforce their usage with the SDL_FORCE_SOUNDFONTS variable.
However, in Debian we have packaged two separate sf2 soundfonts that can be used with fluidsynth and that actually should be used if they are found installed - even without the need to specify two environment variables. My attached patch allows to specify the path to the soundfont files at build time by means of a #defines.
Second, if there is more than one soundfont path specified in the soundfont_paths variable, the Mix_EachSoundFont() function currently errors out when the first one in the list cannot be found. For my approach, however, it should return success if at least one of the specified soundfonts is found. This is because we know we could have two soundfonts installed on the system, but we don't know which one or if both.
We have applied this patch successfully since SDL_mixer 1.2.12-6 (11 Jul 2013) and it works flawlessly, i.e. music is rendered with fluidsynth if at least one of the two soundfonts specified at build time are found at runtime.
Thank you for considering!
Fabian
On 2015-07-10 18:18:55 +0000, Fabian Greffrath wrote:
This is th part in debian/rules that sets the paths to the soundfont files:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.0
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2015-07-10 18:16:48 +0000, Fabian Greffrath wrote:
On 2015-07-10 18:18:55 +0000, Fabian Greffrath wrote:
On 2017-10-13 06:05:35 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: