Coder Social home page Coder Social logo

Comments (6)

agraef avatar agraef commented on July 24, 2024

Too lazy to fork and do a PR right now, but there's the required change (inline as stupid GH doesn't allow me to attach a patch here):

diff --git a/fluidsynth/src/fluid_defsfont.h b/fluidsynth/src/fluid_defsfont.h
index 29f3fd9..50f987c 100644
--- a/fluidsynth/src/fluid_defsfont.h
+++ b/fluidsynth/src/fluid_defsfont.h
@@ -435,7 +435,7 @@ struct _fluid_defpreset_t
 {
   fluid_defpreset_t* next;
   fluid_defsfont_t* sfont;                  /* the soundfont this preset belongs to */
-  char name[21];                        /* the name of the preset */
+  char name[22];                        /* the name of the preset */
   unsigned int bank;                    /* the bank number */
   unsigned int num;                     /* the preset number */
   fluid_preset_zone_t* global_zone;        /* the global zone of the preset */

from gmsynth.lv2.

x42 avatar x42 commented on July 24, 2024

This patch will have to go upstream to fluidsynth.
see https://github.com/x42/gmsynth.lv2/blob/master/fluidsynth/README

from gmsynth.lv2.

agraef avatar agraef commented on July 24, 2024

sf.net is down, as usual.

from gmsynth.lv2.

x42 avatar x42 commented on July 24, 2024

Is this an issue anyway? Bank and preset have limted range in MIDI. "Bank,Preset" and terminating NULL is only 12 chars. The remaining 9 digits are more that sufficient for bank (two or 5 digits, up to 2^14) + preset (3 digits -- up to 2^7)

from gmsynth.lv2.

agraef avatar agraef commented on July 24, 2024

Yeah, it's probably just a theoretical possibility. So then it's just to make gcc happy and get rid of that warning. :)

from gmsynth.lv2.

x42 avatar x42 commented on July 24, 2024

upstream issue:
https://github.com/FluidSynth/fluidsynth/blob/768fa225db7a9bcb054a1ff300679baf31188468/src/sfloader/fluid_defsfont.h#L146

from gmsynth.lv2.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.