[haiku-bugs] Re: [Haiku] #7285: BSoundPlayer sends buffers late, with ever-increasing latency

  • From: "Pete" <trac@xxxxxxxxxxxx>
  • Date: Thu, 12 May 2011 17:44:31 -0000

#7285: BSoundPlayer sends buffers late, with ever-increasing latency
------------------------------+-----------------------
   Reporter:  Pete            |      Owner:  axeld
       Type:  bug             |     Status:  new
   Priority:  normal          |  Milestone:  R1
  Component:  Kits/Media Kit  |    Version:  R1/alpha2
 Resolution:                  |   Keywords:
 Blocked By:                  |   Blocking:
Has a Patch:  1               |   Platform:  All
------------------------------+-----------------------

Comment (by Pete):

 Replying to [comment:20 bonefish]:
 > Replying to [comment:19 Pete]:
 > > My understanding of "performance time" is that it ''could'' be
 entirely different from "real time", even though at the moment it seems to
 just be microseconds with its own start point.  For instance a performance
 time "unit" might be a 44.1 kHz audio frame.
 >
 > No, performance time is always in microseconds.
 >
 Are youo sure (that that's what Be intended)?  The BeBook is either pretty
 explicit or pretty confused (in the BTimeSource chapter):
   "Real time refers to the actual passage of time, as reported by
 system_time() or the BTimeSource::RealTime() function. It's measured in
 microseconds.

   Performance time runs in "time units" which aren't necessarily directly
 related to real time.  Since your code will have to deal with both kinds
 of time, you need to be sure to convert between the two time systems when
 it's necessary to do so."

 They make a clear distinction there between microseconds and "time units".

 In any case, I can do it "right" for either interpretation.

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

Other related posts: