Skip to content

Discussion: Consider dropping sf3 format support in set_soundfont to reduce wheel size?ย #3622

@ankith26

Description

@ankith26
  • sf2 is the most commonly used soundfont format. Fluidsynth also supports some extra formats sf3 and dls which are not as popular.
  • To support sf3 format, fluidsynth depends on sndfile. sndfile so file is around 0.5 MB (measured on pygame-ce 2.5.6 linux)
  • Removing sndfile so file would also remove the dependency on vorbisenc so file which is around 0.7 MB. Together, the removal saves around 1.2 MB size per wheel (uncompressed).
  • The removal probably doesn't affect anyone or break code. set_soundfont is pygame-ce API added somewhat recently. Windows (as of pygame-ce 2.5.6) doesn't support set_soundfont at all. We could just document this limitation now and then wait to see if anyone complains or requests support for it (which is unlikely)

EDIT: dls format support doesn't seem to rely on sndfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions