Add testcase for SOUND_STREAM_TYPE_VOICE_INFORMATION 06/207906/1 accepted/tizen/unified/20190617.061722 submit/tizen/20190614.022238
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 14 Jun 2019 02:18:06 +0000 (11:18 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 14 Jun 2019 02:20:15 +0000 (11:20 +0900)
[Version] 0.2.3
[Issue Type] Test suite

Change-Id: If837f0cdd758eb461605002dbf7ccd8c890bee68
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-wav-player.spec
test/wav_player_test.c

index d7016ae..a04d4cf 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-wav-player
 Summary:    A wav player library in Tizen C API
-Version:    0.2.2
+Version:    0.2.3
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 522139c..668ffda 100644 (file)
@@ -39,7 +39,7 @@ void help()
        printf("Usage : ");
        printf("wav_player_test [OPTION]\n\n"
                   "  -f, --file                file path to play\n"
-                  "  -s, --streamtype          stream type (0:media(default), 1:system, 2:notification, 3:solo)\n"
+                  "  -s, --streamtype          stream type (0:media(default), 1:system, 2:notification, 3:voice-information, 4:solo)\n"
                   "  -i, --iterate             how many times to play\n"
                   "  -h, --help                help\n");
 }
@@ -79,11 +79,14 @@ void wav_play_test(const char* file_path, int iterate, int stream_type)
                type = SOUND_STREAM_TYPE_NOTIFICATION;
                break;
        case 3:
+               type = SOUND_STREAM_TYPE_VOICE_INFORMATION;
+               break;
+       case 4:
                type = SOUND_STREAM_TYPE_SOLO;
                break;
        }
 
-       if (stream_type == 3) {
+       if (stream_type == 4) {
                if (sound_manager_create_stream_information_internal(type, stream_focus_cb, NULL, &stream_info)) {
                        printf("failed to create stream info internal\n");
                        return;