From 1f32369451bd5ddf7a59defef7900d508ee144da Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Wed, 28 Jan 2009 15:57:20 +0100 Subject: Limit the delay by a new max-delay property Introduce a new max-delay property that can only be set before going to PLAYING or PAUSED. This is used to limit the maximum delay and is set to the current delay by default. Using this will make sure that we have enough data in our internal ringbuffer for the echo. With dynamic reallocation of the ringbuffer as used before silence could've been used as the echo directly after setting a new delay. --- gst/audiofx/audioecho.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/audiofx/audioecho.h') diff --git a/gst/audiofx/audioecho.h b/gst/audiofx/audioecho.h index 9513bb8e..9722d7d7 100644 --- a/gst/audiofx/audioecho.h +++ b/gst/audiofx/audioecho.h @@ -44,6 +44,7 @@ struct _GstAudioEcho GstAudioFilter audiofilter; guint64 delay; + guint64 max_delay; gfloat intensity; gfloat feedback; -- cgit