From 196e7d28252993353e9634f38ba0abf917cca081 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Fri, 14 Jun 2019 11:18:06 +0900 Subject: [PATCH] Add testcase for SOUND_STREAM_TYPE_VOICE_INFORMATION [Version] 0.2.3 [Issue Type] Test suite Change-Id: If837f0cdd758eb461605002dbf7ccd8c890bee68 Signed-off-by: Sangchul Lee --- packaging/capi-media-wav-player.spec | 2 +- test/wav_player_test.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packaging/capi-media-wav-player.spec b/packaging/capi-media-wav-player.spec index d7016ae..a04d4cf 100755 --- a/packaging/capi-media-wav-player.spec +++ b/packaging/capi-media-wav-player.spec @@ -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 diff --git a/test/wav_player_test.c b/test/wav_player_test.c index 522139c..668ffda 100644 --- a/test/wav_player_test.c +++ b/test/wav_player_test.c @@ -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; -- 2.7.4