-
Notifications
You must be signed in to change notification settings - Fork 312
Description
FluidSynth version
Copyright (C) 2000-2025 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of Creative Technology Ltd.
FluidSynth executable version 2.4.6
Sample type=doubleDescribe the bug
SF2 2.04 specification, section 10.2:
10.2 Unknown Chunks
In parsing the RIFF structure, unknown but well formed chunks or sub-chunks may be encountered. Unknown chunks
within the INFO-list chunk should simply be ignored. Other unknown chunks or sub-chunks are illegal and should be
treated as structural errors.
I've created a test soundfont for my DMOD proposal and according to the specifications, it is still a valid file that should load. It only includes the extra DMOD chunk, yet fluidsynth rejects it, violating this section of the spec. I've specifically added it in the INFO-list because the spec allows to do so.
Expected behavior
The program should load the bank and play it as is, ignoring unknown INFO chunks. The current behavior is not to spec and eliminates the possibility of any extensions, like my DMOD proposal.
Steps to reproduce
- Download the DMOD test soundfont
- Attempt to load it with fluidsynth
fluidsynth: error: Invalid chunk id in INFO chunk
Additional context
I'm working on a soundfont/dls editor which also writes this chunk to an sf2 file. Having fluidsynth incorrectly reject it isn't good.