[mythtv-commits] Ticket #8378: Sound off by ~200ms (at least with pulse audio)
MythTV
mythtv at cvs.mythtv.org
Sat Apr 24 18:18:23 UTC 2010
#8378: Sound off by ~200ms (at least with pulse audio)
---------------------------------------------+------------------------------
Reporter: Marc Randolph <mrand@…> | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: 0.23rc2
Severity: medium | Mlocked: 0
---------------------------------------------+------------------------------
Forwarding upstream. I user has verified that [24214] indeed fixed the
major pulse audio seeking problem when applied against to the 0.23-fixes
branch. He did notice sound sync was off by a bit though, and found that
the following patch fixes it:
{{{
Index: libs/libmyth/audiooutputpulse.cpp
===================================================================
--- libs/libmyth/audiooutputpulse.cpp (revision 24255)
+++ libs/libmyth/audiooutputpulse.cpp (working copy)
@@ -564,7 +564,7 @@
fragment_size = 20UL * sample_rate * audio_bits * audio_channels
/ 8 /* 8 bits per byte */ / 1000 /* 1000 ms per second */;
- soundcard_buffer_size = 16 * fragment_size;
+ soundcard_buffer_size = 6 * fragment_size;
buffer_settings.maxlength = soundcard_buffer_size;
buffer_settings.tlength = fragment_size * 4;
buffer_settings.prebuf = (uint32_t)-1;
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8378>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list