Add new internal stream type for compressed media 31/135231/4 accepted/tizen/unified/20170627.071449 submit/tizen/20170626.070954
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 21 Jun 2017 08:11:13 +0000 (17:11 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 22 Jun 2017 02:55:11 +0000 (02:55 +0000)
[Version] 0.4.14
[Issue Type] New feature

Change-Id: I50c26bc0a1c7cbf401d181bb88a6338509341ae3
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 a21ec4dac6292c32e24c3e42483a90e7990e82dc..a63c9a772e7aed08b92cb290fc4ba297968e4119 100644 (file)
@@ -70,6 +70,7 @@ typedef enum {
        SOUND_STREAM_TYPE_LOOPBACK_MIRRORING,         /**< Sound stream type for loopback-mirroring */
        SOUND_STREAM_TYPE_SOLO,                       /**< Sound stream type for solo */
        SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE,  /**< Sound stream type for voice recognition by service (Since 4.0) */
+       SOUND_STREAM_TYPE_MEDIA_COMPRESSED,           /**< Sound stream type for compressed media (Since 4.0) */
 } sound_stream_type_internal_e;
 
 /**
index 2943b9790c177d011de10fca1becdc71a40f4b5a..9581142c7c81792f65cc4024ab2fc5a17b443dde 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.4.13
+Version:    0.4.14
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index a47563e2cbed39cc230c9a7978a2e66b4a87731e..699ee83dd58dd30b1e7dd08e2965225bbe21df19 100644 (file)
@@ -208,6 +208,9 @@ int _convert_stream_type_for_internal(sound_stream_type_internal_e stream_type_e
        case SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE:
                *stream_type = "voice-recognition-service";
                break;
+       case SOUND_STREAM_TYPE_MEDIA_COMPRESSED:
+               *stream_type = "compressed-media";
+               break;
        default:
                LOGE("could not find the stream_type[%d] in this switch case statement", stream_type_enum);
                ret = MM_ERROR_SOUND_INTERNAL;
@@ -240,6 +243,7 @@ int _convert_stream_type_to_change_reason(const char *stream_type, sound_stream_
        SM_NULL_ARG_CHECK_FOR_PRIV(change_reason);
 
        if (!strncmp(stream_type, "media", SOUND_STREAM_TYPE_LEN) ||
+               !strncmp(stream_type, "compressed-media", SOUND_STREAM_TYPE_LEN) ||
                !strncmp(stream_type, "radio", SOUND_STREAM_TYPE_LEN) ||
                !strncmp(stream_type, "loopback", SOUND_STREAM_TYPE_LEN)) {
                *change_reason = SOUND_STREAM_FOCUS_CHANGED_BY_MEDIA;