[haiku-bugs] Re: [Haiku] #9920: BSynth upgrade

  • From: "Pete" <trac@xxxxxxxxxxxx>
  • Date: Tue, 23 Sep 2014 03:01:30 -0000

#9920: BSynth upgrade
-----------------------------+-------------------------
   Reporter:  Pete           |      Owner:  korli
       Type:  enhancement    |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  Kits/Midi Kit  |    Version:  R1/alpha4.1
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  1              |   Platform:  All
-----------------------------+-------------------------

Comment (by Pete):

 I just noticed another stupid...  Not anyone's fault - except History's
 (and maybe an unknown Be engineer).

 B_SYNTH_DIRECTORY is not one of those in FindDirectory.h.  It is an
 ''equate'' in MidiDefs.h.  In BeOS it was equated to B_BEOS_ETC_DIRECTORY,
 and in Haiku it had to be switched to B_SYSTEM_DATA_DIRECTORY.  So
 anything written "correctly" and compiled for BeOS won't run in Haiku
 anyway (though probably will if recompiled.  (I remember that I in fact
 recompiled MidiSynth1.7, so not surprising it works!)

 B_SYNTH_DIRECTORY doesn't even match the other definitions.
 B_USER_SETTINGS refers to a ".../settings" directory and so on, but
 B_SYNTH_DIRECTORY refers to the ''parent'', so you always have to insert
 your own "/synth".  I think this should also be deprecated strongly.  It
 should not be used in Haiku code.

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

Other related posts: