Re: Plugin Support
- From: Marcin Kolny <marcin kolny gmail com>
- To: Cole Bush <bush c husky neu edu>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Plugin Support
- Date: Mon, 14 Mar 2016 23:37:32 +0100
Hi Cole,
We only generate wrappers for gstreamer-core and gst-plugins-base plugins. Moreover, I'm going to remove this plugins in the newest version, so you shouldn't use them anyway (Instead of that, I'll provide tool for generating C++ wrappers for any plugins).
To use spectrum plugin in c++ code, I'd recommend to use following example:
#include <iostream>
#include <gstreamermm.h>
using namespace std;
int main (int argc, char **argv)
{
Gst::init(argc, argv);
auto element = Gst::ElementFactory::create_element("spectrum");
auto filter = Glib::RefPtr<Gst::AudioFilter>::cast_dynamic(element);
std::cout << filter->get_sink_pad()->get_name() << std::endl;
return 0;
}
As you can see, you're able to use this element as Gst::AudioFilter object. Please let me know, whether that's what you're looking for, or you need more help.
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]