[haiku-bugs] Re: [Haiku] #7882: Video/Audio stuttering when using programs

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Tue, 09 Aug 2011 11:20:00 -0000

#7882: Video/Audio stuttering when using programs
------------------------------+-----------------------
   Reporter:  SeanCollins     |      Owner:  axeld
       Type:  bug             |     Status:  new
   Priority:  normal          |  Milestone:  R1
  Component:  Kits/Media Kit  |    Version:  R1/alpha3
 Resolution:                  |   Keywords:
 Blocked By:                  |   Blocking:
Has a Patch:  0               |   Platform:  All
------------------------------+-----------------------

Comment (by ttcoder):

 Dang I'm fairly annoyed as I've refined my 'torture test' to be more
 brutal and now I can't get flawless audio any more: even if I rise
 priorities to +20 audio is "close but no cigar", i.e. I can get glitches
 if I try hard enough.

 The refined test is to open the multi-MB textfile, and then drag/hover the
 (still loading/layout'ing) StyledEdit window over a bunch of Tracker
 windows. @Sean I guess you'll see the same behavior I see with this test
 too?

 Tracking down where each thread is created takes some time, the
 MediaPlayer app is surprisingly big, but if 'patching' its source does not
 even fix the problem then I guess it's back to the drawing board for us
 :-/

 One of the two interesting MediaPlayer threads is a BLooper created
 [http://dev.haiku-
 
os.org/browser/haiku/trunk/src/apps/mediaplayer/media_node_framework/PlaybackManager.cpp#L97
 here] ..

 I guess one could change it to no longer use the default parameter but
 instead override it like thus:

 {{{
         PlaybackManager::PlaybackManager()
             :
             BLooper("playback manager", B_DISPLAY_PRIORITY),
 }}}

 and track down the other loopers/threads to do the same, but again that
 would just bring performance to 99% level, not to perfection..

 To get the remaining 1% of glitches we'll need someone more savvy coming
 to the rescue!

 P.S. Also tried SoundPlayTT and out-of-the-box playback is a bit better
 than MediaPlayer, but still not perfect, around 95% good or something.
 Playing with the "priority" slider in prefs/playback helps a little, just
 like playing with ProcessController's menus helps a little in regard to
 MediaPlayer...

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

Other related posts: