diff libaf/af.h @ 7665:fbd5445cc853

Adding function for calculating the delay caused by the filters
author anders
date Tue, 08 Oct 2002 10:20:36 +0000
parents 90e16aa8ae5f
children 1d3a3dc1f488
line wrap: on
line diff
--- a/libaf/af.h	Tue Oct 08 05:46:23 2002 +0000
+++ b/libaf/af.h	Tue Oct 08 10:20:36 2002 +0000
@@ -48,6 +48,7 @@
   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_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