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

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Sun, 21 Sep 2014 15:23:47 -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 jackburton):

 About the GetAudio part:
 From what I see, playsound can be called multiple times. If so, there is a
 memory leak, since we allocate memory and assign it to fMonitor without
 deleting it first. Would be okay to call delete[] on it first ?
 Moreover, we write the data as floats and then we read it as int16s in
 BSynth::GetAudio(). Is it okay ?

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

Other related posts: