sound_manager_test: Add media compressed stream type to test stream info. creation 48/201448/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 14 Mar 2019 07:57:19 +0000 (16:57 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 14 Mar 2019 07:58:50 +0000 (16:58 +0900)
[Version] 0.5.20
[Issue Type] Testsuite

Change-Id: I7319d0528ad7a775bce427bff1d0cb207214057a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
test/sound_manager_test.c

index 4d9db35391507b9258a2f51219710bfaa928751e..9a02108a47e1a6fabf2e32f13a8b0a6f6017cef0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.5.19
+Version:    0.5.20
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 775ce2da8d4d06258d161992af6fa55502d7ac7e..fb7e3c21542edd402847a47c993ed41656ec255e 100644 (file)
@@ -473,7 +473,7 @@ static void displaymenu()
        else if (g_menu_state == CURRENT_STATUS_REMOVE_DEVICE_RUNNING_CHANGED_CB)
                g_print("*** press enter to remove device running changed cb\n");
        else if (g_menu_state == CURRENT_STATUS_CREATE_STREAM_INFO)
-               g_print("*** input stream type to create stream information\n(0:media, 1:system, 2:alarm, 3:notification, 4:emergency, 5:ringtone-call, 6:voice-call, 7:voip, 8:media-ext-only, 9:loopback, 10:solo, 11:radio)\n");
+               g_print("*** input stream type to create stream information\n(0:media, 1:system, 2:alarm, 3:notification, 4:emergency, 5:ringtone-call, 6:voice-call, 7:voip, 8:media-ext-only, 9:loopback, 10:solo, 11:radio, 12:media-compressed)\n");
        else if (g_menu_state == CURRENT_STATUS_ADD_DEVICE_FOR_STREAM_ROUTING)
                g_print("*** input device type to add (0:built-in mic, 1:built-in spk, 2:built-in rcv, 3:audio-jack, 4:bt-a2dp, 5:bt-sco 6:usb)\n");
        else if (g_menu_state == CURRENT_STATUS_REMOVE_DEVICE_FOR_STREAM_ROUTING)
@@ -1218,6 +1218,9 @@ static void interpret(char *cmd)
                case 11: /* radio */
                        type = SOUND_STREAM_TYPE_RADIO;
                        break;
+               case 12: /* media compressed */
+                       type = SOUND_STREAM_TYPE_MEDIA_COMPRESSED;
+                       break;
                default:
                        type = SOUND_STREAM_TYPE_MEDIA;
                        break;
@@ -1225,6 +1228,7 @@ static void interpret(char *cmd)
                if (type == (int)SOUND_STREAM_TYPE_RINGTONE_CALL ||
                    type == (int)SOUND_STREAM_TYPE_VOICE_CALL ||
                    type == (int)SOUND_STREAM_TYPE_RADIO ||
+                       type == (int)SOUND_STREAM_TYPE_MEDIA_COMPRESSED ||
                    type == (int)SOUND_STREAM_TYPE_LOOPBACK)
                        ret = sound_manager_create_stream_information_internal(type, focus_callback, NULL, &g_stream_info_h);
                else if (type == (int)SOUND_STREAM_TYPE_SOLO)