Problems with dynamically changing element parameters

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems with dynamically changing element parameters

hulettbh
Hey guys - Im trying create a basic pipeline that just applies a filter to an input audio signal before outputting it.  I'd also like to be able to dynamically change the filter parameters while the pipeline is running.  

I'm having a few issues that I'm hoping you can help me with:
1) The filter doesn't actually seem to be doing anything - The pipeline is just passing the audio straight through, unfiltered.  When I change the cutoff frequency and re-compile, the audio output is unchanged.

2) I can't dynamically change the cutoff frequency.  Whenever I call "g_object_set (G_OBJECT (filter), "cutoff", cutoff, NULL);" to change the cutoff frequency I receive the following warning:

(pipe:1703): GLib-GObject-WARNING **: IA__g_object_set_valist: object class `GstAudioChebLimit' has no property named `h\xf3\u0015'



Do you guys have any idea I'm doing wrong here?  I think there's probably something wrong with the way I initialize the elements - but Im not really sure how to fix it.

I've uploaded my source code pipe.c - Its just a modification of the "hello world" application from the manual: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html