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

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 14 Nov 2011 20:00:36 -0000

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

Comment (by pulkomandy):

 Replying to [comment:39 Pete]:
 > You say that you heard the sound "catching up" with the patch, but I've
 never encountered this.  As I say, once the sound gets garbled, you have
 to restart the app.

 I don't see that here. When system load gets down, everything resumes as
 expected (with or without the patch). I get an occasional
 media_addon_server crash.
 Are you sure this part is not actually a sound card driver bug ?

 >
 > The problem with increase-latency mode is that unless you allocate a
 ''lot'' of extra buffers, it may increase (especially when unpatched!)
 beyond the available capacity.  That's the trouble with the "ever-
 increasing latency that was the original topic!  A limit ''is'' set
 somewhere in the chain (about 1/5 sec?), but most apps have too little
 buffer space to reach this.
 >

 The latency shouldn't be ever-increasing, of course.

 > You're right that with the current blackout problems, short latency and
 increase-latency mode are not compatible.  (For my live MIDI stuff, I'm
 using B_RECORDING where I can,but that's not always possible to set -- for
 SqueekySynth for instance.) However, as MidiPlayer shows, the problem is
 wider.

 Can't you set the mode for it in Cortex ? Raising the thread priority may
 help too (and that would point to the problem actually being in scheduler
 world).

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

Other related posts: