Change sound_manager_create_stream_information in accordance with the stream type 96/227796/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Wed, 11 Mar 2020 09:58:32 +0000 (18:58 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Mon, 16 Mar 2020 10:27:46 +0000 (10:27 +0000)
Change-Id: Iad4222ae450396f7874a08b322582574ccf03156
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 6df0429105026bc1496e715f0ce2c46b6a8a703e)

client/stt.c

index 4781372..a99e423 100644 (file)
@@ -2756,7 +2756,14 @@ int __stt_change_system_volume(stt_system_volume_event_e volume_event)
                g_stream_for_volume_h = NULL;
        }
 
-       ret = sound_manager_create_stream_information_internal(stream_type, NULL, NULL, &g_stream_for_volume_h);
+       if (SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE == stream_type) {
+               SLOG(LOG_INFO, TAG_STTC, "[INFO] Stream type is SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE");
+               ret = sound_manager_create_stream_information_internal(stream_type, NULL, NULL, &g_stream_for_volume_h);
+       } else if (SOUND_STREAM_TYPE_VOICE_RECOGNITION == stream_type) {
+               SLOG(LOG_INFO, TAG_STTC, "[INFO] Stream type is SOUND_STREAM_TYPE_VOICE_RECOGNITION");
+               ret = sound_manager_create_stream_information(stream_type, NULL, NULL, &g_stream_for_volume_h);
+       }
+
        if (0 != ret) {
                SLOG(LOG_DEBUG, TAG_STTC, "[ERROR] Fail to create stream information, ret(%d)", ret);
                return STT_ERROR_OPERATION_FAILED;