Add new internal stream type - SOUND_STREAM_TYPE_MEDIA_NETWORK_SOURCE 69/208069/3
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 18 Jun 2019 00:43:00 +0000 (09:43 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 19 Jun 2019 03:00:20 +0000 (12:00 +0900)
[Version] 0.5.25
[Issue Type] New feature

Change-Id: I53bf840763f1bf127c3478edb4088bd5ecd6e9e1
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 0bc89722a25eca540a45645b114b22f27973136d..71c348d27f5baf38172502ef65716061a5d07935 100644 (file)
@@ -71,6 +71,7 @@ typedef enum {
        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_MEDIA_NETWORK_SOURCE,       /**< Sound stream type for network source media (Since 5.5) */
 } sound_stream_type_internal_e;
 
 /**
index 039cd1c1d40a13bb0114999140384bf6ec908347..77a015aab822b0996ae0beff38b54653ad4de514 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.5.24
+Version:    0.5.25
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 6332bd66e3320515f654800147d892b8fef3e090..0c6f8ee5fb1f1182f638ed9da9053f7103d448dc 100644 (file)
@@ -244,6 +244,9 @@ int _convert_stream_type_for_internal(sound_stream_type_internal_e stream_type_e
        case SOUND_STREAM_TYPE_MEDIA_COMPRESSED:
                *stream_type = "compressed-media";
                break;
+       case SOUND_STREAM_TYPE_MEDIA_NETWORK_SOURCE:
+               *stream_type = "network-source-media";
+               break;
        default:
                LOGE("could not find the stream_type[%d] in this switch case statement", stream_type_enum);
                ret = MM_ERROR_SOUND_INTERNAL;
@@ -2626,4 +2629,4 @@ int _set_virtual_stream_volume(virtual_sound_stream_info_s *virtual_stream, doub
        pa_threaded_mainloop_unlock(virtual_stream->pa_mainloop);
 
        return ret;
-}
\ No newline at end of file
+}