Add loopback-mirroring stream type for internal use 84/89784/4 accepted/tizen/3.0/ivi/20161011.065051 accepted/tizen/3.0/mobile/20161015.032601 accepted/tizen/3.0/tv/20161016.003513 accepted/tizen/3.0/wearable/20161015.080259 accepted/tizen/common/20160928.163908 accepted/tizen/ivi/20160930.040733 accepted/tizen/mobile/20160930.040358 accepted/tizen/tv/20160930.040544 accepted/tizen/wearable/20160930.040642 submit/tizen/20160928.043825 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000000
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 27 Sep 2016 04:42:03 +0000 (13:42 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 28 Sep 2016 04:46:33 +0000 (13:46 +0900)
[Version] 0.3.70
[Profile] Common
[Issue Type] New feature

Change-Id: I6bc2685160f88dac30d12d06ac50e1dd3b141872
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/sound_manager_internal.h
packaging/capi-media-sound-manager.spec
src/sound_manager_private.c

index 7ca4f3b9bdcd693b52ea1e7b594ee58c024a5410..884a901dfee9089300a077689e429a50fb4d633f 100644 (file)
@@ -67,6 +67,7 @@ typedef enum {
        SOUND_STREAM_TYPE_VIDEO_CALL,          /**< Sound stream type for video-call */
        SOUND_STREAM_TYPE_RADIO,               /**< Sound stream type for radio */
        SOUND_STREAM_TYPE_LOOPBACK,            /**< Sound stream type for loopback */
+       SOUND_STREAM_TYPE_LOOPBACK_MIRRORING,  /**< Sound stream type for loopback-mirroring */
        SOUND_STREAM_TYPE_SOLO,                /**< Sound stream type for solo */
 } sound_stream_type_internal_e;
 
index eb8bfe2f40a61598d6007c23a6fe43ae6d6ee40d..9026d92d72b912d9c30bb750b335d11856a3afe9 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.69
+Version:    0.3.70
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 87a07ae119d14c7ab82c9c93e7af8d13731fcd77..ac259d9a4a987e1523a032529f692a02f78b011f 100644 (file)
@@ -184,6 +184,9 @@ int _convert_stream_type_for_internal(sound_stream_type_internal_e stream_type_e
        case SOUND_STREAM_TYPE_LOOPBACK:
                *stream_type = "loopback";
                break;
+       case SOUND_STREAM_TYPE_LOOPBACK_MIRRORING:
+               *stream_type = "loopback-mirroring";
+               break;
        case SOUND_STREAM_TYPE_SOLO:
                *stream_type = "solo";
                break;
@@ -203,7 +206,8 @@ void _set_focus_availability(sound_stream_info_s *stream_info)
                LOGE("invalid argument");
                return;
        }
-       if (!strncmp(stream_info->stream_type, "solo", SOUND_STREAM_TYPE_LEN)) {
+       if (!strncmp(stream_info->stream_type, "solo", SOUND_STREAM_TYPE_LEN) ||
+               !strncmp(stream_info->stream_type, "loopback-mirroring", SOUND_STREAM_TYPE_LEN)) {
                stream_info->is_focus_unavailable = true;
                LOGI("this stream_type[%s] does not support focus", stream_info->stream_type);
        }