Add test case for radio stream in sound_manager_test 72/71572/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 26 May 2016 04:29:40 +0000 (13:29 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 26 May 2016 04:30:27 +0000 (13:30 +0900)
[Version] Release 0.3.52
[Profile] Common
[Issue Type] Enhance testsuite

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

index 93d8914974be689ee692aa46ac309d598982af72..a499cdbc519b7fc3229c3464e3f61853bddba858 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.51
+Version:    0.3.52
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 5be77b3a97c7af76176d2d4aedc200ad1c0f84ea..fe1dda44dd1ae29ea0838c4da9411535a8e01428 100644 (file)
@@ -390,7 +390,7 @@ static void displaymenu()
        else if (g_menu_state == CURRENT_STATUS_UNSET_DEVICE_INFO_CHANGED_CB)
                g_print("*** press enter to unset device information 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)\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)\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, 5:usb)\n");
        else if (g_menu_state == CURRENT_STATUS_REMOVE_DEVICE_FOR_STREAM_ROUTING)
@@ -1032,12 +1032,16 @@ static void interpret(char *cmd)
                case 10: /* solo */
                        type = SOUND_STREAM_TYPE_SOLO;
                        break;
+               case 11: /* radio */
+                       type = SOUND_STREAM_TYPE_RADIO;
+                       break;
                default:
                        type = SOUND_STREAM_TYPE_MEDIA;
                        break;
                }
                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_LOOPBACK)
                        ret = sound_manager_create_stream_information_internal(type, focus_callback, NULL, &g_stream_info_h);
                else if (type == (int)SOUND_STREAM_TYPE_SOLO)