Skip to content

Fluidsynth should not reject unknown INFO chunks #1580

@spessasus

Description

@spessasus

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=double

Describe 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

  1. Download the DMOD test soundfont
  2. Attempt to load it with fluidsynth
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions