Ejemplo n.º 1
0
static void
gst_dasf_sink_set_mute (GstMixer* mixer, GstMixerTrack* track, gboolean mute)
{
	GstDasfSink* self = GST_DASF_SINK (mixer);
	GstDasfSinkPrivate* priv = GST_DASF_SINK_GET_PRIVATE (self);

	GST_LOG ("");

	priv->mute = mute;

	if (self->component != NULL)
	{
		goo_ti_audio_component_set_mute (self->component,
						 priv->mute);

		if (mute)
		{
    			track->flags |= GST_MIXER_TRACK_MUTE;
  		}
		else
		{
    			track->flags &= ~GST_MIXER_TRACK_MUTE;
  		}
	}

	return;
}
Ejemplo n.º 2
0
static void
gst_dasf_src_set_mute (GstMixer* mixer, GstMixerTrack* track, gboolean mute)
{
        GstDasfSrc* self = GST_DASF_SRC (mixer);
        GstDasfSrcPrivate* priv = GST_DASF_SRC_GET_PRIVATE (self);

        GST_LOG ("");

        priv->mute = mute;

        if (self->component != NULL)
        {
                goo_ti_audio_component_set_mute (self->component,
                                                 priv->mute);
        }

        return;
}