From 3e3a4733fbd6655c1fd81c64cf46fb64fd7ed736 Mon Sep 17 00:00:00 2001 From: anders Date: Tue, 8 Oct 2002 10:20:36 +0000 Subject: 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 --- libaf/af.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libaf/af.h') 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 -- cgit v1.2.3