// Generated by generate_plugin_gmmproc_file. Don't edit this file.


_PINCLUDE(gstreamermm/private/audiosink_p.h)

extern "C"
{

GType gst_alsa_sink_gstreamermm_get_type()
{
  static GType type = 0;
  GstElementFactory* factory = 0;
  GstPluginFeature* feature = 0;

  if(!type)
  {
    factory = gst_element_factory_find("alsasink");
    // Make sure that the feature is actually loaded:
    if(factory)
    {
      feature =
        gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));

      g_object_unref(factory);
      factory = GST_ELEMENT_FACTORY(feature);
      type = gst_element_factory_get_element_type(factory);
      g_object_unref(factory);

      // Register the new type with wrapping system
      Glib::wrap_register(type, &Gst::AlsaSink_Class::wrap_new);
    }
  }

  return type;
}

} // extern "C"

namespace Gst
{

AlsaSink::AlsaSink()
: _CONSTRUCT("name", static_cast<char*>(0))
{}

AlsaSink::AlsaSink(const Glib::ustring& name)
: _CONSTRUCT("name", name.c_str())
{}

}
namespace Glib
{

Glib::RefPtr<Gst::AlsaSink> wrap(GstAlsaSink* object, bool take_copy)
{
  static bool registered_wrap_new = false;
  if(!registered_wrap_new)
  {
    // Call get *_get_type() function which does the registration.
    gst_alsa_sink_gstreamermm_get_type();
    registered_wrap_new = true;
  }

  return Glib::RefPtr<Gst::AlsaSink>( dynamic_cast<Gst::AlsaSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
}

}
