summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authormoom16 <moom16>2005-04-24 14:42:50 +0000
committermoom16 <moom16@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-04-24 14:42:50 +0000
commit36a904a439e93dbf8428e03a59cbbc34f6b24852 (patch)
treeb34f2f4fc034599ff3d9ca65e4cf27e40df9f514 /legacy/emotion/src/lib/emotion_smart.c
parent93f67dbe89701dae2e436bacda6ff20709549dd0 (diff)
* add two functions to know if audio and video are handled (emotion_object_audio_handled_get and emotion_object_video_handled_get)
* add a smart callback "audio_level_change" to deal with audio level change * alsa is now used by default since many people report troubles with oss SVN revision: 14320
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 12df051a16..64be4bc0df 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -265,6 +265,28 @@ emotion_object_seekable_get(Evas_Object *obj)
265 return sd->module->seekable(sd->video); 265 return sd->module->seekable(sd->video);
266} 266}
267 267
268Evas_Bool
269emotion_object_video_handled_get(Evas_Object *obj)
270{
271 Smart_Data *sd;
272
273 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
274 if (!sd->module) return 0;
275 if (!sd->video) return 0;
276 return sd->module->video_handled(sd->video);
277}
278
279Evas_Bool
280emotion_object_audio_handled_get(Evas_Object *obj)
281{
282 Smart_Data *sd;
283
284 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
285 if (!sd->module) return 0;
286 if (!sd->video) return 0;
287 return sd->module->audio_handled(sd->video);
288}
289
268double 290double
269emotion_object_play_length_get(Evas_Object *obj) 291emotion_object_play_length_get(Evas_Object *obj)
270{ 292{
@@ -810,6 +832,11 @@ _emotion_playback_finished(Evas_Object *obj)
810 evas_object_smart_callback_call(obj, "playback_finished", NULL); 832 evas_object_smart_callback_call(obj, "playback_finished", NULL);
811} 833}
812 834
835void _emotion_audio_level_change(Evas_Object *obj)
836{
837 evas_object_smart_callback_call(obj, "audio_level_change", NULL);
838}
839
813void 840void
814_emotion_channels_change(Evas_Object *obj) 841_emotion_channels_change(Evas_Object *obj)
815{ 842{