summaryrefslogtreecommitdiffstats
path: root/libaf/af.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af.c')
-rw-r--r--libaf/af.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libaf/af.c b/libaf/af.c
index 32c59dbbcd..c229f9eee6 100644
--- a/libaf/af.c
+++ b/libaf/af.c
@@ -542,7 +542,7 @@ double af_calc_filter_multiplier(af_stream_t* s)
return mul;
}
-/* Calculate the total delay [ms] caused by the filters */
+/* Calculate the total delay [bytes output] caused by the filters */
double af_calc_delay(af_stream_t* s)
{
af_instance_t* af=s->first;
@@ -550,6 +550,7 @@ double af_calc_delay(af_stream_t* s)
// Iterate through all filters
while(af){
delay += af->delay;
+ delay *= af->mul;
af=af->next;
}
return delay;