annotate mp_fifo.h @ 24900:9079c9745ff9

A/V sync: take audio filter buffers into account Substract the delay caused by filter buffering when calculating currently playing audio position. This matters for af_scaletempo which buffers significant and varying amounts of data. For other current filters the effect is normally insignificant. Instead of the old time-based filter delay field (which was ignored) this version stores the per-filter delay in units of bytes input read without corresponding output. This allows the current scaletempo behavior where other filters before and after it can see the same nominal samplerate even though the real duration of the data varies; in this case the other filters can not know the delay they're causing in terms of real time.
author uau
date Thu, 01 Nov 2007 06:52:50 +0000
parents cd0ec0b1d931
children dfca45ad9326
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22824
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
1 #ifndef MP_FIFO_H
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
2 #define MP_FIFO_H
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
3
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
4 int mplayer_get_key(int fd);
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
5 void mplayer_put_key(int code);
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
6
cd0ec0b1d931 Missing svn add from r22841.
rathann
parents:
diff changeset
7 #endif