diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-08 10:20:36 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-08 10:20:36 +0000 |
commit | 3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736 (patch) | |
tree | 41186a2df2c7e4034df5ec95abc176a602733230 /libaf/af.h | |
parent | f767a62a4291dd41ff68fe8e6277f24443ff827d (diff) | |
download | mpv-3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736.tar.bz2 mpv-3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736.tar.xz |
Adding function for calculating the delay caused by the filters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7666 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af.h')
-rw-r--r-- | libaf/af.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libaf/af.h b/libaf/af.h index 26309aaf1b..73c7eefe1c 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -48,6 +48,7 @@ typedef struct af_instance_s af_data_t* data; // configuration for outgoing data stream struct af_instance_s* next; struct af_instance_s* prev; + double delay; // Delay caused by the filter [ms] frac_t mul; /* length multiplier: how much does this instance change the length of the buffer. */ }af_instance_t; @@ -180,6 +181,8 @@ int af_inputlen(af_stream_t* s, int len); int af_calc_insize_constrained(af_stream_t* s, int len, int max_outsize,int max_insize); +/* Calculate the total delay caused by the filters */ +double af_calc_delay(af_stream_t* s); // Helper functions and macros used inside the audio filters |