Support VOICE_RECOGNITION_SERVICE stream type 54/141054/2 accepted/tizen/unified/20170801.054858 submit/tizen/20170731.025308
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 28 Jul 2017 03:05:12 +0000 (12:05 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 28 Jul 2017 03:30:38 +0000 (12:30 +0900)
[Version] 0.3.78
[Profile] Common
[Issue Type] Enhancement

Change-Id: Ie9842b817a365107fbcdd2e034589cf1fbfcef4d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/CAudioInfo.h
packaging/capi-media-audio-io.spec
src/cpp/CAudioInput.cpp

index 4a8b662..6f50e6a 100644 (file)
@@ -63,6 +63,7 @@ namespace tizen_media_audio {
             //AUDIO_IN_TYPE_VIDEO_CALL,
             //AUDIO_IN_TYPE_RADIO,
             AUDIO_IN_TYPE_LOOPBACK,
+            AUDIO_IN_TYPE_VOICE_RECOGNITION_SERVICE,
 
             /* Output Type */
             AUDIO_OUT_TYPE_MEDIA,
@@ -80,6 +81,7 @@ namespace tizen_media_audio {
             //AUDIO_OUT_TYPE_VIDEO_CALL,
             //AUDIO_OUT_TYPE_RADIO,
             //AUDIO_OUT_TYPE_LOOPBACK,
+            //AUDIO_OUT_TYPE_VOICE_RECOGNITION_SERVICE,
 
             AUDIO_TYPE_MAX
         };
@@ -136,6 +138,7 @@ namespace tizen_media_audio {
             //"call-video",           /**< AUDIO_IN_TYPE_VIDEO_CALL */
             //"radio",                /**< AUDIO_IN_TYPE_RADIO */
             "loopback-mirroring",     /**< AUDIO_IN_TYPE_LOOPBACK */
+            "voice-recognition-service",     /**< AUDIO_IN_TYPE_VOICE_RECOGNITION_SERVICE */
 
             /* Output Type */
             "media",                  /**< AUDIO_OUT_TYPE_MEDIA */
@@ -153,6 +156,7 @@ namespace tizen_media_audio {
             //"call-video",           /**< AUDIO_OUT_TYPE_VIDEO_CALL */
             //"radio",                /**< AUDIO_OUT_TYPE_RADIO */
             //"loopback-mirroring",   /**< AUDIO_OUT_TYPE_LOOPBACK */
+            //"voice-recognition-service",/**< AUDIO_OUT_TYPE_VOICE_RECOGNITION_SERVICE */
         };
 
         unsigned int __mSampleRate;
index 3a543ee..fb0eb02 100644 (file)
@@ -1,6 +1,6 @@
 Name:           capi-media-audio-io
 Summary:        An Audio Input & Audio Output library in Tizen Native API
-Version:        0.3.77
+Version:        0.3.78
 Release:        0
 Group:          Multimedia/API
 License:        Apache-2.0
index 2e46907..a5ee5ee 100644 (file)
@@ -259,7 +259,7 @@ void CAudioInput::prepare() throw(CAudioError) {
 
         // Check to invalid AudioType
         CAudioInfo::EAudioType audioType = mAudioInfo.getAudioType();
-        if (audioType < CAudioInfo::EAudioType::AUDIO_IN_TYPE_MEDIA || audioType > CAudioInfo::EAudioType::AUDIO_IN_TYPE_LOOPBACK) {
+        if (audioType < CAudioInfo::EAudioType::AUDIO_IN_TYPE_MEDIA || audioType >= CAudioInfo::EAudioType::AUDIO_OUT_TYPE_MEDIA) {
             THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_INVALID_ARGUMENT,
                                    "The audioType is invalid [type:%d]", static_cast<int>(audioType));
         }