[haiku-bugs] Re: [Haiku] #12899: Use fluidlite as fluidsynth replacement, add SF3 support

  • From: "Pete" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Aug 2016 22:10:04 -0000

#12899: Use fluidlite as fluidsynth replacement, add SF3 support
-----------------------------+----------------------------
   Reporter:  korli          |      Owner:  korli
       Type:  enhancement    |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  Kits/Midi Kit  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by Pete):

 Replying to [comment:2 korli]:

Replying to [comment:1 Pete]:
Not too impressed by the fact I haven't been able to compile it...

The recipe at Haikuports has a small patch for gcc2, will be upstreamed.

 Thanks -- found it.  Now compiles OK.


Are we sure it's a true drop-in replacement?  Reverb etc. work as
 before?

The sources are based on fluidsynth, just truncated to the part doing
 the basic functionality.
I don't know how reverb works.

 Checked it out.  Reverb and Chorus seem to work fine.



I just got the hpkg, and I see that (as you said) it's a static
 library.  How
is that to be accessed by apps that want libfluidsynth.so?

Apps that want libfluidsynth.so would have to depend on
 lib:libfluidsynth, which they already should do. Haiku won't embed and
 support libfluidsynth.so in the base system in the future.
Fluidlite is meant as a *Midikit* replacement for fluidsynth, nothing
 more.

 But that's rather retrograde isn't it?  My stuff has used libfluidsynth.so
 since the beginning, and has always assumed and expected it to just "be
 there".

 What's wrong with making it a shared library?  I just tweaked
 CMakeLists.txt to build a shared library, installed it in non-packaged/lib
 and linked libfluidsynth.so to that.  Ran my MusicWeaver Synth module on
 that and it works just fine!  I suppose calling it fluidsynth is a bit
 wrong because it doesn't have midifile functionality and so on.  But it
 should be a shared library anyway, so the user/developer has the choice of
 just using it or requiring the full fluidsynth system.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12899#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: