aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/alsa-audio.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-03-02 11:54:45 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-03-05 16:57:28 +0100
commit456d65a5c6a9013adabbe0f21c920a6f04b9e6e9 (patch)
tree677d7bc9a5c9eb6229fa9d4f4fd86e85d9bf3834 /libavdevice/alsa-audio.h
parent9bbe6ed1e0b80249124b8c040544cc30e753bb76 (diff)
downloadffmpeg-456d65a5c6a9013adabbe0f21c920a6f04b9e6e9.tar.gz
alsa: fix timefilter usage.
The period argument is supposed to be the number of samples since the last update.
Diffstat (limited to 'libavdevice/alsa-audio.h')
-rw-r--r--libavdevice/alsa-audio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/alsa-audio.h b/libavdevice/alsa-audio.h
index e453a2011b..6719384d84 100644
--- a/libavdevice/alsa-audio.h
+++ b/libavdevice/alsa-audio.h
@@ -52,6 +52,7 @@ typedef struct {
int period_size; ///< preferred size for reads and writes, in frames
int sample_rate; ///< sample rate set by user
int channels; ///< number of channels set by user
+ int last_period;
TimeFilter *timefilter;
void (*reorder_func)(const void *, void *, int);
void *reorder_buf;