diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-24 14:22:11 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-09-24 14:32:12 -0400 |
commit | 5e9e33dd91ce623ddb88f2e853b4cbdfa9bfcc73 (patch) | |
tree | 81a1e9d3bb080cdb560f29207c0f3b87daf6d7f0 /src/lib/emotion/emotion_smart.c | |
parent | b3adcff0dfb6aae6296cdf4ccabada293332e11a (diff) |
efl_player: split off audio related properties
Summary:
this commit moves the audio related properties from Efl.Player to
Efl.Player_Audio.
Reviewers: zmike, Jaehyun_Cho
Reviewed By: zmike
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7877
Differential Revision: https://phab.enlightenment.org/D10106
Diffstat (limited to '')
-rw-r--r-- | src/lib/emotion/emotion_smart.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c index a7a8fa8905..73c588bf81 100644 --- a/src/lib/emotion/emotion_smart.c +++ b/src/lib/emotion/emotion_smart.c | |||
@@ -830,11 +830,11 @@ emotion_object_event_simple_send(Evas_Object *obj, Emotion_Event ev) | |||
830 | EAPI void | 830 | EAPI void |
831 | emotion_object_audio_volume_set(Evas_Object *obj, double vol) | 831 | emotion_object_audio_volume_set(Evas_Object *obj, double vol) |
832 | { | 832 | { |
833 | efl_player_volume_set(obj, vol); | 833 | efl_audio_control_volume_set(obj, vol); |
834 | } | 834 | } |
835 | 835 | ||
836 | EOLIAN static void | 836 | EOLIAN static void |
837 | _efl_canvas_video_efl_player_volume_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, double vol) | 837 | _efl_canvas_video_efl_audio_control_volume_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, double vol) |
838 | { | 838 | { |
839 | DBG("vol=%f", vol); | 839 | DBG("vol=%f", vol); |
840 | if (!sd->engine_instance) return; | 840 | if (!sd->engine_instance) return; |
@@ -844,11 +844,11 @@ _efl_canvas_video_efl_player_volume_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Da | |||
844 | EAPI double | 844 | EAPI double |
845 | emotion_object_audio_volume_get(const Evas_Object *obj) | 845 | emotion_object_audio_volume_get(const Evas_Object *obj) |
846 | { | 846 | { |
847 | return efl_player_volume_get(obj); | 847 | return efl_audio_control_volume_get(obj); |
848 | } | 848 | } |
849 | 849 | ||
850 | EOLIAN static double | 850 | EOLIAN static double |
851 | _efl_canvas_video_efl_player_volume_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) | 851 | _efl_canvas_video_efl_audio_control_volume_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) |
852 | { | 852 | { |
853 | if (!sd->engine_instance) return 0.0; | 853 | if (!sd->engine_instance) return 0.0; |
854 | return emotion_engine_instance_audio_channel_volume_get(sd->engine_instance); | 854 | return emotion_engine_instance_audio_channel_volume_get(sd->engine_instance); |
@@ -857,11 +857,11 @@ _efl_canvas_video_efl_player_volume_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Vi | |||
857 | EAPI void | 857 | EAPI void |
858 | emotion_object_audio_mute_set(Evas_Object *obj, Eina_Bool mute) | 858 | emotion_object_audio_mute_set(Evas_Object *obj, Eina_Bool mute) |
859 | { | 859 | { |
860 | efl_player_mute_set(obj, mute); | 860 | efl_audio_control_mute_set(obj, mute); |
861 | } | 861 | } |
862 | 862 | ||
863 | EOLIAN static void | 863 | EOLIAN static void |
864 | _efl_canvas_video_efl_player_mute_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, Eina_Bool mute) | 864 | _efl_canvas_video_efl_audio_control_mute_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, Eina_Bool mute) |
865 | { | 865 | { |
866 | DBG("mute=" FMT_UCHAR, mute); | 866 | DBG("mute=" FMT_UCHAR, mute); |
867 | if (!sd->engine_instance) return; | 867 | if (!sd->engine_instance) return; |
@@ -871,11 +871,11 @@ _efl_canvas_video_efl_player_mute_set(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data | |||
871 | EAPI Eina_Bool | 871 | EAPI Eina_Bool |
872 | emotion_object_audio_mute_get(const Evas_Object *obj) | 872 | emotion_object_audio_mute_get(const Evas_Object *obj) |
873 | { | 873 | { |
874 | return efl_player_mute_get(obj); | 874 | return efl_audio_control_mute_get(obj); |
875 | } | 875 | } |
876 | 876 | ||
877 | EOLIAN static Eina_Bool | 877 | EOLIAN static Eina_Bool |
878 | _efl_canvas_video_efl_player_mute_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) | 878 | _efl_canvas_video_efl_audio_control_mute_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) |
879 | { | 879 | { |
880 | if (!sd->engine_instance) return EINA_FALSE; | 880 | if (!sd->engine_instance) return EINA_FALSE; |
881 | return emotion_engine_instance_audio_channel_mute_get(sd->engine_instance); | 881 | return emotion_engine_instance_audio_channel_mute_get(sd->engine_instance); |