rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=59b5b70118dd25701f8c801e757b5e4c4b3e6546

commit 59b5b70118dd25701f8c801e757b5e4c4b3e6546
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Fri Jun 3 15:14:29 2016 +0300

    sound manager: stop plaing sample after close manager
    
    Change-Id: I8dd29765c314d001720162b9955425786f970c75
---
 src/bin/ui/sound_manager.c             | 2 ++
 src/bin/ui/sound_player/sound_player.c | 9 +++++++++
 src/bin/ui/sound_player/sound_player.h | 3 +++
 3 files changed, 14 insertions(+)

diff --git a/src/bin/ui/sound_manager.c b/src/bin/ui/sound_manager.c
index 4fd0474..9ec61a6 100644
--- a/src/bin/ui/sound_manager.c
+++ b/src/bin/ui/sound_manager.c
@@ -467,6 +467,7 @@ _mw_cancel_cb(void *data __UNUSED__,
    /* unset and hide the image property */
    content = elm_object_content_unset(mng.win);
    evas_object_hide(content);
+   sound_player_sound_unset();
 }
 
 static void
@@ -479,6 +480,7 @@ _mw_done_cb(void *data __UNUSED__,
    /* unset and hide the image property */
    content = elm_object_content_unset(mng.win);
    evas_object_hide(content);
+   sound_player_sound_unset();
 }
 
 static void
diff --git a/src/bin/ui/sound_player/sound_player.c 
b/src/bin/ui/sound_player/sound_player.c
index e9720de..0fe2a0b 100644
--- a/src/bin/ui/sound_player/sound_player.c
+++ b/src/bin/ui/sound_player/sound_player.c
@@ -335,6 +335,15 @@ sound_player_sound_set(Sound_Data *sound)
 #endif
 }
 
+void
+sound_player_sound_unset(void)
+{
+   ecore_audio_obj_paused_set(in, true);
+   ecore_timer_freeze(timer);
+
+   _play_finished_cb(NULL, NULL);
+}
+
 Evas_Object *
 sound_player_add(Evas_Object *parent)
 {
diff --git a/src/bin/ui/sound_player/sound_player.h 
b/src/bin/ui/sound_player/sound_player.h
index c5653a4..968d7cc 100644
--- a/src/bin/ui/sound_player/sound_player.h
+++ b/src/bin/ui/sound_player/sound_player.h
@@ -26,6 +26,9 @@
 void
 sound_player_sound_set(Sound_Data *sound);
 
+void
+sound_player_sound_unset(void);
+
 Evas_Object *
 sound_player_add(Evas_Object *parent);
 

-- 


Reply via email to