Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GstObject ╰── GstElement ╰── GstBaseTransform ╰── GstAudioFilter ╰── GstAudioFXBaseIIRFilter ╰── GstAudioIIRFilter
audioiirfilter implements a generic audio IIR filter. Before usage the "a" and "b" properties have to be set to the filter coefficients that should be used.
The filter coefficients describe the numerator and denominator of the transfer function.
To change the filter coefficients whenever the sampling rate changes the "rate-changed" signal can be used. This should be done for most IIR filters as they're depending on the sampling rate.
1 |
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" parse="text" href="../../../../tests/examples/audiofx/iirfilter-example.c" /> |
plugin |
audiofx |
author |
Sebastian Dröge <sebastian.droege@collabora.co.uk> |
class |
Filter/Effect/Audio |
name |
sink |
direction |
sink |
presence |
always |
details |
audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ] |
“a”
property “a” GValueArray *
Filter coefficients (numerator of transfer function).
Flags: Read / Write
“rate-changed”
signalvoid user_function (GstAudioIIRFilter *filter, gint rate, gpointer user_data)
Will be emitted when the sampling rate changes. The callbacks will be called from the streaming thread and processing will stop until the event is handled.
filter |
the filter on which the signal is emitted |
|
rate |
the new sampling rate |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last