static void gst_ladspa_stop (GstSignalProcessor * gsp) { GstLADSPA *ladspa; LADSPA_Descriptor *desc; ladspa = (GstLADSPA *) gsp; desc = ladspa->descriptor; g_return_if_fail (ladspa->activated == TRUE); g_return_if_fail (ladspa->handle != NULL); GST_DEBUG_OBJECT (ladspa, "deactivating"); if (desc->activate) desc->activate (ladspa->handle); ladspa->activated = FALSE; }
static gboolean gst_ladspa_start (GstSignalProcessor * gsp) { GstLADSPA *ladspa; LADSPA_Descriptor *desc; ladspa = (GstLADSPA *) gsp; desc = ladspa->descriptor; g_return_val_if_fail (ladspa->activated == FALSE, FALSE); g_return_val_if_fail (ladspa->handle != NULL, FALSE); GST_DEBUG_OBJECT (ladspa, "activating"); if (desc->activate) desc->activate (ladspa->handle); ladspa->activated = TRUE; return TRUE; }