Lines Matching refs:pad
99 GstAudioMixerPad *pad = GST_AUDIO_MIXER_PAD (object); in gst_audiomixer_pad_get_property() local
103 g_value_set_double (value, pad->volume); in gst_audiomixer_pad_get_property()
106 g_value_set_boolean (value, pad->mute); in gst_audiomixer_pad_get_property()
118 GstAudioMixerPad *pad = GST_AUDIO_MIXER_PAD (object); in gst_audiomixer_pad_set_property() local
122 GST_OBJECT_LOCK (pad); in gst_audiomixer_pad_set_property()
123 pad->volume = g_value_get_double (value); in gst_audiomixer_pad_set_property()
124 pad->volume_i8 = pad->volume * VOLUME_UNITY_INT8; in gst_audiomixer_pad_set_property()
125 pad->volume_i16 = pad->volume * VOLUME_UNITY_INT16; in gst_audiomixer_pad_set_property()
126 pad->volume_i32 = pad->volume * VOLUME_UNITY_INT32; in gst_audiomixer_pad_set_property()
127 GST_OBJECT_UNLOCK (pad); in gst_audiomixer_pad_set_property()
130 GST_OBJECT_LOCK (pad); in gst_audiomixer_pad_set_property()
131 pad->mute = g_value_get_boolean (value); in gst_audiomixer_pad_set_property()
132 GST_OBJECT_UNLOCK (pad); in gst_audiomixer_pad_set_property()
159 gst_audiomixer_pad_init (GstAudioMixerPad * pad) in gst_audiomixer_pad_init() argument
161 pad->volume = DEFAULT_PAD_VOLUME; in gst_audiomixer_pad_init()
162 pad->mute = DEFAULT_PAD_MUTE; in gst_audiomixer_pad_init()
209 static void gst_audiomixer_release_pad (GstElement * element, GstPad * pad);
272 gst_audiomixer_release_pad (GstElement * element, GstPad * pad) in gst_audiomixer_release_pad() argument
278 GST_DEBUG_OBJECT (audiomixer, "release pad %s:%s", GST_DEBUG_PAD_NAME (pad)); in gst_audiomixer_release_pad()
280 gst_child_proxy_child_removed (GST_CHILD_PROXY (audiomixer), G_OBJECT (pad), in gst_audiomixer_release_pad()
281 GST_OBJECT_NAME (pad)); in gst_audiomixer_release_pad()
283 GST_ELEMENT_CLASS (parent_class)->release_pad (element, pad); in gst_audiomixer_release_pad()
292 GstAudioMixerPad *pad = GST_AUDIO_MIXER_PAD (aaggpad); in gst_audiomixer_aggregate_one_buffer() local
302 if (pad->mute || pad->volume < G_MINDOUBLE) { in gst_audiomixer_aggregate_one_buffer()
303 GST_DEBUG_OBJECT (pad, "Skipping muted pad"); in gst_audiomixer_aggregate_one_buffer()
313 GST_LOG_OBJECT (pad, "mixing %u bytes at offset %u from offset %u", in gst_audiomixer_aggregate_one_buffer()
317 if (pad->volume == 1.0) { in gst_audiomixer_aggregate_one_buffer()
368 pad->volume_i8, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
373 pad->volume_i8, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
378 pad->volume_i16, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
383 pad->volume_i16, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
388 pad->volume_i32, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
393 pad->volume_i32, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
398 pad->volume, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()
403 pad->volume, num_frames * srcpad->info.channels); in gst_audiomixer_aggregate_one_buffer()