[vlc-commits] aout: report drift via parameter rather than callback

Rémi Denis-Courmont git at videolan.org
Tue Jul 24 16:41:55 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 24 17:28:46 2012 +0300| [32aa1b26d691b0040182bbdbb51a6d7b502a2091] | committer: Rémi Denis-Courmont

aout: report drift via parameter rather than callback

The time report callback could only be called from pf_play() so this is
cleaner and less prone to coding mistake.

Also pass the relative drift instead of the absolute play time stamp.
The drift is less subject to scheduling noise, i.e. drift evolves much
slower than current time advances.

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

 include/vlc_aout.h                      |   11 ++---
 modules/audio_output/adummy.c           |    5 +-
 modules/audio_output/alsa.c             |   19 ++++----
 modules/audio_output/amem.c             |    4 +-
 modules/audio_output/audioqueue.c       |    2 +-
 modules/audio_output/directx.c          |    7 +--
 modules/audio_output/file.c             |    6 ++-
 modules/audio_output/kai.c              |    7 +--
 modules/audio_output/opensles_android.c |    8 ++--
 modules/audio_output/oss.c              |    7 +--
 modules/audio_output/packet.c           |    5 +-
 modules/audio_output/pulse.c            |    3 +-
 modules/audio_output/sndio.c            |    8 ++--
 modules/audio_output/wasapi.c           |    4 +-
 modules/audio_output/waveout.c          |    7 +--
 src/audio_output/common.c               |    1 -
 src/audio_output/output.c               |   78 ++++++++++++-------------------
 17 files changed, 84 insertions(+), 98 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=32aa1b26d691b0040182bbdbb51a6d7b502a2091


More information about the vlc-commits mailing list