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

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 13 May 2011 00:40: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 bonefish):

 Replying to [comment:23 Pete]:
 > Would be nice if we could collar Jon Watte and ask what he ''really''
 meant (:-)), but in the meantime I'm going with my interpretation!

 I'm not sure what your interpretation is, but I have the feeling it is not
 correct. It really isn't complicated and the paragraphs you quoted support
 what I already wrote before: The performance time unit is microseconds,
 just not real time microseconds but performance time microseconds (the
 conversion factor is the "drift").

 The BeBook quotes seem to suggest that one could somehow influence the
 rate at which the performance time passes and use that to play audio/video
 faster or slower. AFAIK that is not (easily) possible, since BTimeSource
 does not provide an API to do something like that, nor does any other API
 of the media kit to my knowledge. You'd have to create your own
 BTimeSource subclass and would find it troublesome (impossible?) to
 convince audio mixer and other downstream nodes to use your time source.

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

Other related posts: