[vlc-commits] PulseAudio: reuse the nwe vlc_aout.h defines

Rémi Denis-Courmont git at videolan.org
Thu Jul 21 20:42:56 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 21 21:01:38 2011 +0300| [66075dcfc8c099096877d82969a6170ccd3e91e9] | committer: Rémi Denis-Courmont

PulseAudio: reuse the nwe vlc_aout.h defines

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66075dcfc8c099096877d82969a6170ccd3e91e9
---

 modules/audio_output/pulse.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index ba6c01e..bb557e2 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -140,10 +140,6 @@ static void stream_state_cb(pa_stream *s, void *userdata)
 }
 
 /* Latency management and lip synchronization */
-/* Values from EBU R37 */
-#define AOUT_EARLY_TOLERANCE 40000
-#define AOUT_LATE_TOLERANCE  60000
-
 static void stream_latency_cb(pa_stream *s, void *userdata)
 {
     aout_instance_t *aout = userdata;
@@ -182,11 +178,11 @@ static void stream_latency_cb(pa_stream *s, void *userdata)
     /* NOTE: AOUT_MAX_RESAMPLING (10%) is way too high... */
     const int limit = inrate >> 6;
 
-    if (delta < -AOUT_LATE_TOLERANCE) {
+    if (delta < -AOUT_MAX_PTS_DELAY) {
         msg_Warn(aout, "too late by %"PRId64" us", -delta);
         if (change < 0)
             delta += change; /* be more severe if really out of sync */
-    } else if (delta > +AOUT_EARLY_TOLERANCE) {
+    } else if (delta > +AOUT_MAX_PTS_ADVANCE) {
         msg_Warn(aout, "too early by %"PRId64" us", delta);
         if (change > 0)
             delta += change;



More information about the vlc-commits mailing list